Skip to content

Commit

Permalink
ci(github): Run unit tests on Windows
Browse files Browse the repository at this point in the history
As recently some Windows-specific bugs surfaced, see e.g. f1a49b5 and
456e3fc, at least start running unit tests on Windows again. At some
point functional tests should also be run on Windows, but that requires
more setup work to install prerequisites.

The reintroduction of `actions/setup-java` (see 494a324) is required to
work around a bug in Gradle (see [1]).

[1]: gradle/gradle#30652

Signed-off-by: Sebastian Schuberth <[email protected]>
  • Loading branch information
sschuberth committed Dec 12, 2024
1 parent 7e51acc commit ac6b3ae
Showing 1 changed file with 19 additions and 3 deletions.
22 changes: 19 additions & 3 deletions .github/workflows/build-and-test.yml
Original file line number Diff line number Diff line change
Expand Up @@ -15,10 +15,18 @@ env:

jobs:
build:
runs-on: ubuntu-24.04
strategy:
matrix:
os: [ubuntu-24.04, windows-2022]
runs-on: ${{ matrix.os }}
steps:
- name: Checkout Repository
uses: actions/checkout@11bd71901bbe5b1630ceea73d27597364c9af683 # v4
- name: Setup Java
uses: actions/setup-java@8df1039502a15bceb9433410b1a100fbe190c53b # v4
with:
distribution: temurin
java-version: 21
- name: Setup Gradle
uses: gradle/actions/setup-gradle@cc4fc85e6b35bafd578d5ffbc76a5518407e1af0 # v4
- name: Build all classes
Expand All @@ -43,11 +51,19 @@ jobs:
- name: Perform CodeQL Analysis
uses: github/codeql-action/analyze@babb554ede22fd5605947329c4d04d8e7a0b8155 # v3
test:
strategy:
matrix:
os: [ubuntu-24.04, windows-2022]
runs-on: ${{ matrix.os }}
needs: build
runs-on: ubuntu-24.04
steps:
- name: Checkout Repository
uses: actions/checkout@11bd71901bbe5b1630ceea73d27597364c9af683 # v4
- name: Setup Java
uses: actions/setup-java@8df1039502a15bceb9433410b1a100fbe190c53b # v4
with:
distribution: temurin
java-version: 21
- name: Setup Gradle
uses: gradle/actions/setup-gradle@cc4fc85e6b35bafd578d5ffbc76a5518407e1af0 # v4
- name: Run unit tests
Expand All @@ -61,7 +77,7 @@ jobs:
uses: codecov/codecov-action@7f8b4b4bde536c465e797be725718b88c5d95e0e # v5
with:
token: ${{ secrets.CODECOV_TOKEN }}
flags: test
flags: test-${{ matrix.os }}
funTest-non-docker:
needs: build
runs-on: ubuntu-24.04
Expand Down

0 comments on commit ac6b3ae

Please sign in to comment.