-
Notifications
You must be signed in to change notification settings - Fork 29
Refactor CI build #328
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
Refactor CI build #328
Conversation
| branches: | ||
| - main | ||
| pull_request: | ||
| - release/* |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
build wasn't running on push to release branch previously
| build: | ||
| uses: ./.github/workflows/build-common.yml |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
and release workflow wasn't running build
| - name: Check that API diffs are up to date | ||
| run: | | ||
| # need to "git add" in case any generated files did not already exist | ||
| git add docs/apidiffs/ | ||
| if git diff --cached --quiet | ||
| then | ||
| echo "No diff detected in apidiffs." | ||
| else | ||
| echo "Diff detected in apidiffs - did you run './gradlew jApiCmp'?" | ||
| echo $(git diff --cached --name-only) | ||
| echo $(git diff --cached) | ||
| exit 1 | ||
| fi |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
this didn't exist previously, which is why #317 is passing even though the apidiffs are wrong after my last push to the PR
| runs-on: ${{ matrix.os }} | ||
| strategy: | ||
| fail-fast: false | ||
| matrix: |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
for this project building and testing on different oses and java versions might be an overkill
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
yeah, I'll send a follow-up to remove the different OSes at least
Following other Java repos better