From 7956aafcede3fe9fa39402e0a0014759974cb0cc Mon Sep 17 00:00:00 2001 From: Rdataflow Date: Wed, 17 Jan 2024 08:17:29 +0100 Subject: [PATCH] ci: add windows tests --- .github/workflows/test.yaml | 27 ++++++++++++++++++++++++--- 1 file changed, 24 insertions(+), 3 deletions(-) diff --git a/.github/workflows/test.yaml b/.github/workflows/test.yaml index c7a3f43..6bebbe5 100644 --- a/.github/workflows/test.yaml +++ b/.github/workflows/test.yaml @@ -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 @@ -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 @@ -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 @@ -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() }}