OpenAPI HTTP client auth as method argument #606
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: Run PR tests | |
on: | |
pull_request: | |
branches: | |
- "master" | |
permissions: | |
contents: read | |
checks: write | |
pull-requests: write | |
jobs: | |
run-tests: | |
runs-on: ubuntu-latest | |
strategy: | |
matrix: | |
task: [ 'postgres', 'cassandra', 'redis', 'kafka', 'openapi', 'codegen-kotlin', 'codegen-java', 'other' ] | |
steps: | |
- uses: actions/checkout@v4 | |
- name: JDK 17 setup | |
uses: actions/setup-java@v4 | |
with: | |
java-version: '17' | |
distribution: 'adopt' | |
- name: Gradle setup | |
uses: gradle/actions/setup-gradle@v4 | |
with: | |
cache-read-only: ${{ github.ref != 'refs/heads/master' }} | |
gradle-home-cache-cleanup: ${{ github.ref == 'refs/heads/master' }} | |
- name: Gradle ${{ matrix.task }} classes | |
run: ./gradlew classes-${{ matrix.task }} --scan | |
shell: bash | |
- name: Gradle ${{ matrix.task }} javadoc | |
run: ./gradlew javadoc-${{ matrix.task }} --scan | |
shell: bash | |
- name: Gradle ${{ matrix.task }} test classes | |
run: ./gradlew testClasses-${{ matrix.task }} --scan | |
shell: bash | |
- name: Gradle ${{ matrix.task }} test | |
run: ./gradlew test-${{ matrix.task }} --scan | |
shell: bash | |
- name: Publish ${{ matrix.task }} test report | |
uses: EnricoMi/publish-unit-test-result-action@v2 | |
with: | |
files: | | |
**/test-results/**/*.xml |