Change default tasks to check to prevent execution of assemble #1143
This file contains hidden or 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-tests | |
| on: [push,pull_request] | |
| permissions: | |
| contents: read | |
| jobs: | |
| build: | |
| strategy: | |
| matrix: | |
| buildProfile: [ 17 ] | |
| testProfile: [ 17, 21, 25 ] | |
| firebird: [ '5.0.4' ] | |
| canFail: [ false ] | |
| # include: | |
| # - buildProfile: 17 | |
| # testProfile: 17 | |
| # firebird: '6-snapshot' | |
| # canFail: true | |
| runs-on: ubuntu-latest | |
| continue-on-error: ${{ matrix.canFail }} | |
| steps: | |
| - name: Login to Docker Hub | |
| # PRs from forks don't have access to the secrets, skip Docker login and hope we don't hit the rate limit | |
| if: ${{ !github.event.pull_request.head.repo.fork }} | |
| uses: docker/login-action@v4 | |
| with: | |
| username: ${{ secrets.DOCKERHUB_USERNAME }} | |
| password: ${{ secrets.DOCKERHUB_TOKEN }} | |
| - name: Setup Firebird ${{ matrix.firebird }} | |
| uses: juarezr/firebirdsql-github-action@v2.3.0 | |
| with: | |
| version: ${{ matrix.firebird }} | |
| firebird_root_password: 'masterkey' | |
| firebird_conf: 'WireCrypt=Enabled,AuthServer=Srp256;Srp;Legacy_Auth;Srp224;Srp384;Srp512,UserManager=Srp;Legacy_UserManager' | |
| - uses: actions/checkout@v6 | |
| - name: Set up Java ${{ matrix.buildProfile }} (build) and ${{ matrix.testProfile }} (test) | |
| uses: actions/setup-java@v5 | |
| with: | |
| java-version: | | |
| ${{ matrix.buildProfile }} | |
| ${{ matrix.testProfile }} | |
| distribution: 'temurin' | |
| - name: Setup Gradle | |
| uses: gradle/actions/setup-gradle@50e97c2cd7a37755bbfafc9c5b7cafaece252f6e | |
| with: | |
| cache-read-only: ${{ github.ref != 'refs/heads/Branch_6_0' }} | |
| - name: Build with Gradle | |
| run: ./gradlew test -PbuildProfile=${{ matrix.buildProfile }} -PtestProfile=${{ matrix.testProfile }} -Ptest.dbondocker=true -Ptest.db.dir=/var/lib/firebird/data | |
| - name: Store Report Artifact | |
| uses: actions/upload-artifact@v7 | |
| if: always() | |
| with: | |
| name: report-artifacts-${{ matrix.buildProfile }}-${{ matrix.testProfile }}-${{ matrix.firebird }} | |
| path: build/reports | |
| compression-level: 9 | |
| retention-days: 7 |