Skip to content

Support advanced query in BuildsApi extensions #272

Support advanced query in BuildsApi extensions

Support advanced query in BuildsApi extensions #272

Workflow file for this run

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
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'
- run: mv ./library/build/generated/openapi-generator ./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'
- run: mv ./base-ref-checkout/library/build/generated/openapi-generator ./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@v2
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@v3
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