Skip to content

Commit

Permalink
chore(build): pin os versions for tests
Browse files Browse the repository at this point in the history
  • Loading branch information
JoergSiebahn committed Oct 16, 2024
1 parent 10337d7 commit d659851
Showing 1 changed file with 4 additions and 2 deletions.
6 changes: 4 additions & 2 deletions .github/workflows/java-ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -10,14 +10,15 @@ on:
jobs:
# build library
build:
name: build (${{matrix.java_version}}, ${{ startsWith(matrix.os, 'windows-') && 'windows-latest' || 'ubuntu-latest' }})
runs-on: ${{ matrix.os }}

strategy:
# always run all tests to avoid having different amounts of tests.
fail-fast: false
matrix:
java_version: ['17', '21']
os: ['ubuntu-latest', 'windows-latest']
os: ['ubuntu-22.04', 'windows-2022']

timeout-minutes: 60
steps:
Expand Down Expand Up @@ -48,7 +49,8 @@ jobs:
- uses: actions/upload-artifact@b4b15b8c7c6ac21ea08fcf65892d2ee8f75cf882 # v4.4.3
if: always()
with:
name: ${{ matrix.os }}-${{ matrix.java_version }}-test-results
# keep latest suffix for subsequent workflows
name: ${{ startsWith(matrix.os, 'windows-') && 'windows-latest' || 'ubuntu-latest' }}-${{ matrix.java_version }}-test-results
path: |
build/reports/
*/build/test-results/**/*.xml
Expand Down

0 comments on commit d659851

Please sign in to comment.