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 7956aaf
Showing 1 changed file with 24 additions and 3 deletions.
27 changes: 24 additions & 3 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,13 @@ jobs:
run: npm ci

- name: Run tests
run: sh ./test/check-observations.sh
shell: sh
run: ./test/check-observations.sh

- name: Show test results
if: ${{ always() }}
shell: sh
run: for file in test/observations/*.log ; do echo === $file === ; cat $file ; done

- name: Upload test results
uses: actions/upload-artifact@v3
Expand All @@ -28,10 +40,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,8 +63,14 @@ jobs:
run: npm ci

- name: Run tests
shell: sh
run: ./test/check-metadata.sh --profile=${{ matrix.profile }}

- name: Show test results
if: ${{ always() }}
shell: sh
run: for file in test/${{ matrix.profile }}/*.log ; do echo === $file === ; cat $file ; done

- name: Upload test results
uses: actions/upload-artifact@v3
if: ${{ failure() }}
Expand Down

0 comments on commit 7956aaf

Please sign in to comment.