Skip to content

Commit

Permalink
ci: break up cabal test, more tweaks
Browse files Browse the repository at this point in the history
  • Loading branch information
thomasjm committed Jul 21, 2024
1 parent 06ef2cb commit 58dae96
Showing 1 changed file with 26 additions and 28 deletions.
54 changes: 26 additions & 28 deletions .github/workflows/sandwich.yml
Original file line number Diff line number Diff line change
Expand Up @@ -19,17 +19,8 @@ jobs:
- "9.0.2"
- "9.2.8"
- "9.4.8"
- "9.6.5"
- "9.6.6"
- "9.8.1"
exclude:
# Access violation in generated code when executing data at 0x6d88
- os: windows-latest
ghc: 8.8.4

- os: macOS-latest
ghc: 8.6.5
- os: macOS-latest
ghc: 8.8.4

steps:
- uses: actions/checkout@v2
Expand Down Expand Up @@ -62,7 +53,7 @@ jobs:
- uses: actions/cache/restore@v4
id: cache-restore
with:
path: ${{ steps.setup-haskell-cabal.outputs.cabal-store }}
path: ~/.cabal
key: ${{ runner.os }}-${{ matrix.ghc }}-${{ hashFiles('cabal.project.freeze') }}

- name: Install dependencies (macOS)
Expand All @@ -82,14 +73,28 @@ jobs:
cabal configure --enable-tests --enable-benchmarks --test-show-details=direct
cabal build all
- name: Test
run: |
cabal test all
# - name: Test (sandwich-contexts)
# run: | cabal test sandwich-contexts

# - name: Test (sandwich-contexts-docker)
# run: | cabal test sandwich-contexts-docker

- name: Test (sandwich-contexts-minio)
run: | cabal test sandwich-contexts-minio
- name: Test (sandwich-hedgehog)
run: | cabal test sandwich-hedgehog
- name: Test (sandwich-quickcheck)
run: | cabal test sandwich-quickcheck
- name: Test (sandwich-webdriver)
run: | cabal test sandwich-webdriver
- uses: actions/cache/save@v4
if: always() && steps.cache-restore.outputs.cache-hit != 'true'
with:
path: ${{ steps.setup-haskell-cabal.outputs.cabal-store }}
path: ~/.cabal
key: ${{ runner.os }}-${{ matrix.ghc }}-${{ hashFiles('cabal.project.freeze') }}

stack:
Expand Down Expand Up @@ -144,29 +149,22 @@ jobs:
stack test sandwich --stack-yaml ${{matrix.yaml}} --system-ghc
- name: Test (sandwich-contexts)
run: |
echo "NIX_PATH: $NIX_PATH"
stack test sandwich-contexts --stack-yaml ${{matrix.yaml}} --system-ghc --ta --debug
run: | stack test sandwich-contexts --stack-yaml ${{matrix.yaml}} --system-ghc --ta --debug
- name: Test (sandwich-contexts-docker)
run: |
stack test sandwich-contexts-docker --stack-yaml ${{matrix.yaml}} --system-ghc
run: | stack test sandwich-contexts-docker --stack-yaml ${{matrix.yaml}} --system-ghc
- name: Test (sandwich-contexts-minio)
run: |
stack test sandwich-contexts-minio --stack-yaml ${{matrix.yaml}} --system-ghc
run: | stack test sandwich-contexts-minio --stack-yaml ${{matrix.yaml}} --system-ghc
- name: Test (sandwich-hedgehog)
run: |
stack test sandwich-hedgehog --stack-yaml ${{matrix.yaml}} --system-ghc
run: | stack test sandwich-hedgehog --stack-yaml ${{matrix.yaml}} --system-ghc
- name: Test (sandwich-quickcheck)
run: |
stack test sandwich-quickcheck --stack-yaml ${{matrix.yaml}} --system-ghc
run: | stack test sandwich-quickcheck --stack-yaml ${{matrix.yaml}} --system-ghc
- name: Test (sandwich-webdriver)
run: |
stack test sandwich-webdriver --stack-yaml ${{matrix.yaml}} --system-ghc
run: | stack test sandwich-webdriver --stack-yaml ${{matrix.yaml}} --system-ghc
- uses: actions/cache/save@v4
if: always() && steps.cache-restore.outputs.cache-hit != 'true'
Expand Down

0 comments on commit 58dae96

Please sign in to comment.