Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Create CI workflows #20

Merged
merged 16 commits into from
Nov 12, 2023
Merged

Create CI workflows #20

merged 16 commits into from
Nov 12, 2023

Conversation

IanTapply22
Copy link
Member

Description

Created a lint workflow to check any format errors, a format workflow to format any code automatically that's pushed to main, and a build workflow to check if code builds properly without errors. This is linked to #2

Type of change

Please delete options that are not relevant.

  • Bug fix (non-breaking change which fixes an issue)
  • New feature (non-breaking change which adds functionality)
  • Breaking change (fix or feature that would cause existing functionality to not work as expected)
  • This change requires a documentation update

Checklist:

  • My code follows the style guidelines of this project
  • I have performed a self-review of my code
  • I have commented my code, particularly in hard-to-understand areas
  • I have made corresponding changes to the documentation, if any
  • My changes generate no new warnings
  • I have performed tests that prove my fix is effective or that my feature works, if necessary
  • New and existing unit tests pass locally with my changes

@IanTapply22 IanTapply22 added the development workflow This improves our development workflow to make programming easier label Nov 12, 2023
@IanTapply22 IanTapply22 self-assigned this Nov 12, 2023
@IanTapply22
Copy link
Member Author

We can fix the failing checks in another PR/issue, so just disregard them for now

@colemacphail
Copy link
Member

create ci workflow

fails lint

fails build

💀

@IanTapply22
Copy link
Member Author

create ci workflow

fails lint

fails build

💀

Eh, technically this PR isn't for fixing those errors. It's just to implement the systems to catch them

@IanTapply22
Copy link
Member Author

create ci workflow

fails lint

fails build

💀

#21 Addresses this issue further

Specified format to only work for PRs and on main and 2023-beta
@IanTapply22 IanTapply22 requested review from colemacphail and kaleb-dodd and removed request for colemacphail November 12, 2023 01:46
@IanTapply22 IanTapply22 linked an issue Nov 12, 2023 that may be closed by this pull request
@IanTapply22 IanTapply22 mentioned this pull request Nov 12, 2023
11 tasks
@IanTapply22
Copy link
Member Author

Formatting seems to be failing because it isn't on a branch, fixing it now

@colemacphail
Copy link
Member

actions/checkout#317 (comment) maybe relevant @IanTapply22

@IanTapply22
Copy link
Member Author

actions/checkout#317 (comment) maybe relevant @IanTapply22

Yep! I'm doing exactly that

@colemacphail
Copy link
Member

I think you pass the ref into the checkout action not the format action

@colemacphail
Copy link
Member

maybe a silly question but do you have any ideas on why workflows didn't run after the format commit?

@colemacphail
Copy link
Member

maybe a silly question but do you have any ideas on why workflows didn't run after the format commit?

like it obviously worked (and we can prob close #22 once this is in) but I think we still need to check that it actually builds once it's formatted properly for when we start enforcing CI to merge

@IanTapply22
Copy link
Member Author

maybe a silly question but do you have any ideas on why workflows didn't run after the format commit?

Well like, I think the google format needs to happen before we lint and build. It tried to build and lint before we actually made the formatting changes.

@colemacphail
Copy link
Member

ok so 2 options here imo, we can either try to figure out why linting is failing (probably different linter settings between the formatter & linter) or we can just stop linting and assume the autoformatter will do a good enough job

I'll let you make that decision but I'm gonna stamp this as soon as CI is green because this is mad annoying

@IanTapply22
Copy link
Member Author

I'm getting rid of linting, I was going to throw that idea out there, but I just want this to be green and it still works. Thanks for the shout

@IanTapply22
Copy link
Member Author

Build still wants what the linter provided, it can't have a successful build if you don't spotless apply 🙄

build.gradle Outdated Show resolved Hide resolved
Copy link
Member

@colemacphail colemacphail left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

rip spotless 2023-2023

@IanTapply22
Copy link
Member Author

Deserved, was always meant to happen

@IanTapply22 IanTapply22 merged commit ec7dfea into main Nov 12, 2023
2 checks passed
@IanTapply22 IanTapply22 deleted the 2/create-ci-workflow branch November 12, 2023 19:31
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
development workflow This improves our development workflow to make programming easier
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Create CI workflow
2 participants