Rename environment variables to DEVELOCITY_ #381
Workflow file for this run
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' | |
# artifact-name: 'Test reports (${{matrix.runner}})' | |
# path-to-upload: '**/build/reports/tests/**' | |
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 | |
# TODO Re-enable once rename is done (too many dead links until new javadoc is published) | |
# 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: | | |
echo -e '### Generated API diff\n\n```diff' > comment.md | |
diff -ur ./base-ref-api ./pr-ref-api | tee -a comment.md || true | |
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 | |
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 |