|
14 | 14 | matrix:
|
15 | 15 | cabal: ["3.10.3.0"]
|
16 | 16 | vers:
|
| 17 | + - {ghc: "9.4.8", stackage: "lts-21.25"} |
17 | 18 | - {ghc: "9.8.2", stackage: "nightly-2024-05-18"}
|
| 19 | + ghc-default: ["9.4.8"] |
18 | 20 |
|
19 | 21 | steps:
|
20 | 22 | - uses: actions/checkout@v4
|
@@ -70,15 +72,26 @@ jobs:
|
70 | 72 | if: steps.pantry.outputs.cache-hit != 'true'
|
71 | 73 | run: stack update
|
72 | 74 |
|
| 75 | + - name: Stack resolver check |
| 76 | + if: ${{ matrix.vers.ghc == matrix.ghc-default }} |
| 77 | + run: grep "${{ matrix.vers.stackage }}" stack.yaml |
| 78 | + |
| 79 | + - name: Stack lock check |
| 80 | + if: ${{ matrix.vers.ghc == matrix.ghc-default }} |
| 81 | + run: stack test --no-run-tests --dry-run --lock-file=error-on-write |
| 82 | + |
| 83 | + - name: Generate Stack project |
| 84 | + run: GHC_VERSION=${{ matrix.vers.ghc }} STACKAGE_VERSION=${{ matrix.vers.stackage }} make -f project-files.mk ${{ matrix.vers.ghc}}.dhall2stack.yaml |
| 85 | + |
| 86 | + - name: Build |
| 87 | + run: stack test --no-run-tests --no-terminal --stack-yaml=ghc-${{ matrix.vers.ghc }}.dhall2stack.yaml |
| 88 | + |
73 | 89 | - name: Save cached dependencies
|
74 | 90 | uses: actions/cache/save@v4
|
75 | 91 | if: steps.pantry.outputs.cache-hit != 'true'
|
76 | 92 | with:
|
77 | 93 | path: ${{ steps.setup.outputs.stack-root }}/pantry
|
78 |
| - key: ${{ steps.cache.outputs.cache-primary-key }} |
79 |
| - |
80 |
| - - name: build |
81 |
| - run: stack test --no-run-tests --no-terminal |
| 94 | + key: ${{ steps.pantry.outputs.cache-primary-key }} |
82 | 95 |
|
83 |
| - - name: test golden |
84 |
| - run: stack test hpack-dhall:golden --no-terminal --test-arguments "--color=always" |
| 96 | + - name: Test |
| 97 | + run: stack test hpack-dhall:golden --test-arguments "--color=always" --no-terminal --stack-yaml=ghc-${{ matrix.vers.ghc }}.dhall2stack.yaml |
0 commit comments