Skip to content

Commit

Permalink
ci: add windows tests
Browse files Browse the repository at this point in the history
  • Loading branch information
Rdataflow committed Jan 17, 2024
1 parent 3c5e866 commit 5924bac
Showing 1 changed file with 13 additions and 4 deletions.
17 changes: 13 additions & 4 deletions .github/workflows/test.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,13 @@ on: [push, pull_request]

jobs:
check-constraint:
runs-on: ubuntu-latest
runs-on: ${{ matrix.os }}
strategy:
fail-fast: false
matrix:
os:
- ubuntu-latest
- windows-latest
steps:
- name: Checkout
uses: actions/checkout@v4
Expand All @@ -18,7 +24,7 @@ jobs:
run: npm ci

- name: Run tests
run: sh ./test/check-observations.sh
run: sh -c './test/check-observations.sh ; result=$? ; echo RESULT $result ; ( for file in test/observations/*.log ; do echo === $file === ; cat $file ; done ) ; exit $result'

- name: Upload test results
uses: actions/upload-artifact@v3
Expand All @@ -28,10 +34,13 @@ jobs:
path: test

check-cube:
runs-on: ubuntu-latest
runs-on: ${{ matrix.os }}
strategy:
fail-fast: false
matrix:
os:
- ubuntu-latest
- windows-latest
profile:
- basic-cube-constraint
- standalone-constraint-constraint
Expand All @@ -48,7 +57,7 @@ jobs:
run: npm ci

- name: Run tests
run: ./test/check-metadata.sh --profile=${{ matrix.profile }}
run: sh -c './test/check-metadata.sh --profile=${{ matrix.profile }} ; result=$? ; echo RESULT $result ; ( for file in test/${{ matrix.profile }}/*.log ; do echo === $file === ; cat $file ; done ) ; exit $result'

- name: Upload test results
uses: actions/upload-artifact@v3
Expand Down

0 comments on commit 5924bac

Please sign in to comment.