Fix Config.logLevel precedence and javadoc #636
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
name: 'Check PR' | |
on: | |
pull_request | |
defaults: | |
run: | |
shell: bash | |
jobs: | |
kotlin-tests: | |
runs-on: ubuntu-latest | |
steps: | |
- name: Checkout | |
uses: actions/checkout@v4 | |
- name: gradle test | |
uses: ./.github/actions/build | |
with: | |
args: >- | |
test | |
compileIntegrationTestKotlin | |
:build-logic:check | |
python-tests: | |
runs-on: ubuntu-latest | |
steps: | |
- name: Checkout | |
uses: actions/checkout@v4 | |
- run: pip install -r .github/scripts/requirements.txt | |
- name: 'unittest discover' | |
run: python3 -m unittest discover -bs .github/scripts | |
readme-links-test: | |
uses: ./.github/workflows/test-readme-links.yml | |
generated-api-diff: | |
runs-on: ubuntu-latest | |
permissions: | |
pull-requests: write | |
steps: | |
- name: Checkout PR ref | |
uses: actions/checkout@v4 | |
- name: gradle openApiGenerate (PR ref) | |
uses: ./.github/actions/build | |
with: | |
args: 'openApiGenerate postProcessGeneratedApi' | |
- run: mv ./library/build/post-processed-api ./pr-ref-api | |
- name: Checkout base ref | |
uses: actions/checkout@v4 | |
with: | |
path: ./base-ref-checkout | |
ref: ${{ github.base_ref }} | |
- name: gradle openApiGenerate (base ref) | |
uses: ./.github/actions/build | |
with: | |
args: '-p ./base-ref-checkout openApiGenerate postProcessGeneratedApi' | |
- run: mv ./base-ref-checkout/library/build/post-processed-api ./base-ref-api | |
- name: Diff generated APIs | |
run: | | |
diff -ur ./base-ref-api ./pr-ref-api | tee generated-api.patch || true | |
echo -e '### Generated API diff\n\n```diff' > comment.md | |
cat generated-api.patch >> comment.md | |
echo -e '```' >> comment.md | |
- name: Find existing comment | |
uses: peter-evans/find-comment@v3 | |
id: find-comment | |
with: | |
issue-number: ${{ github.event.pull_request.number }} | |
comment-author: 'github-actions[bot]' | |
body-includes: 'Generated API diff' | |
- name: Create or update diff comment | |
uses: peter-evans/create-or-update-comment@v4 | |
with: | |
issue-number: ${{ github.event.pull_request.number }} | |
comment-id: ${{ steps.find-comment.outputs.comment-id }} | |
body-file: 'comment.md' | |
edit-mode: replace | |
# Upload patch as PR artifact with short expiration | |
- name: Upload generated-api.patch | |
uses: actions/upload-artifact@v2 | |
with: | |
name: generated-api.patch | |
path: generated-api.patch | |
retention-days: 7 | |
dry-run-publish-javadoc: | |
uses: ./.github/workflows/publish-javadoc.yml | |
with: | |
dry_run: true | |
dry-run-publish-library: | |
uses: ./.github/workflows/publish-library.yml | |
with: | |
dry_run: true | |
dry-run-update-api-spec: | |
uses: ./.github/workflows/update-api-spec.yml | |
with: | |
dry_run: true |