Update build.yml #17
Workflow file for this run
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: Build And Upload | |
| on: | |
| push: | |
| tags: | |
| - "*" | |
| jobs: | |
| test: | |
| strategy: | |
| fail-fast: false | |
| matrix: | |
| os: [ubuntu-latest, macos-latest, windows-latest] | |
| include: | |
| - os: ubuntu-latest | |
| test-type: integration | |
| - os: macos-latest | |
| test-type: unit | |
| - os: windows-latest | |
| test-type: unit | |
| runs-on: ${{ matrix.os }} | |
| steps: | |
| - uses: actions/checkout@v4 | |
| - name: Set up JDK 11 | |
| uses: actions/setup-java@v4 | |
| with: | |
| java-version: '11' | |
| distribution: 'temurin' | |
| - name: Grant execute permission for gradlew | |
| run: chmod +x gradlew | |
| if: matrix.os != 'windows-latest' | |
| # Unit tests only (no Docker required) - runs on all platforms | |
| - name: Run unit tests | |
| if: matrix.test-type == 'unit' | |
| run: ./gradlew test --tests "io.github.intisy.docker.ModelTest" --tests "io.github.intisy.docker.DockerClientBuilderTest" --info | |
| shell: bash | |
| # Integration tests (Docker required) - Linux only where Docker is pre-installed | |
| - name: Run all tests (Linux with Docker) | |
| if: matrix.test-type == 'integration' | |
| run: ./gradlew test --info | |
| build: | |
| needs: test | |
| uses: intisy/workflows/.github/workflows/build.yml@main | |
| with: | |
| ref_name: ${{ github.ref_name }} | |
| secrets: | |
| envPAT: ${{ secrets.PAT }} |