Skip to content

Commit

Permalink
Switch to using explicit stack.yaml files in CI
Browse files Browse the repository at this point in the history
  • Loading branch information
thomasjm committed Jun 27, 2023
1 parent a9ee8b4 commit 3e69576
Show file tree
Hide file tree
Showing 6 changed files with 50 additions and 21 deletions.
18 changes: 10 additions & 8 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -29,13 +29,15 @@ jobs:
matrix:
include:
- ghc: "8.10.7"
resolver: "lts-18.28"
- ghc: "9.0.2"
resolver: "lts-19.33"
yaml: "stack-8.10.7.yaml"
- ghc: "9.0.2 (aeson-1)"
yaml: "stack-9.0.2-aeson1.yaml"
- ghc: "9.0.2 (aeson-2)"
yaml: "stack-9.0.2-aeson2.yaml"
- ghc: "9.2.8"
resolver: "lts-20.26"
yaml: "stack-9.2.8.yaml"
- ghc: "9.4.5"
resolver: "lts-21.0"
yaml: "stack.yaml"
steps:
- uses: actions/checkout@v3

Expand All @@ -49,12 +51,12 @@ jobs:
name: Cache ~/.stack
with:
path: ~/.stack
key: ${{ runner.os }}-${{ matrix.ghc }}-${{ matrix.resolver }}-stack2
key: ${{ runner.os }}-${{ matrix.ghc }}-${{ matrix.yaml }}-stack2

- name: Build
run: |
stack build --resolver ${{matrix.resolver}} --system-ghc --test --bench --no-run-tests --no-run-benchmarks
stack build --stack-yaml ${{matrix.yaml}} --system-ghc --test --bench --no-run-tests --no-run-benchmarks
- name: Test
run: |
stack test --resolver ${{matrix.resolver}} --system-ghc
stack test --stack-yaml ${{matrix.yaml}} --system-ghc
2 changes: 1 addition & 1 deletion kubernetes-client/src/Kubernetes/Data/K8sJSONPath.hs
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,7 @@ import Text.Megaparsec ( Parsec, eof, runParser, some, takeWhile1P )
import Text.Megaparsec.Char ( char )
type Parser a = Parsec Void Text a
#else
import Data.Attoparsec.Text ( many1, char, takeWhile1, Parser )
import Data.Attoparsec.Text ( Parser, char, endOfInput, many1, parseOnly, takeWhile1 )
#endif


Expand Down
6 changes: 3 additions & 3 deletions stack-9.0.2-aeson2.yaml
Original file line number Diff line number Diff line change
@@ -1,9 +1,9 @@

resolver: lts-19.7
resolver: lts-19.33

extra-deps:
- oidc-client-0.6.0.0@sha256:2079dc5c9dfb5b3e2fa93098254ca16787c01a0cd3634b1d84afe84c9a6c4825,3368
- jose-jwt-0.9.4@sha256:6db77f81cfcf81cf7faf8a4dc4b2110c1603dbb94249d49d069a17b4897e9d69,3560
- oidc-client-0.6.0.0
- jose-jwt-0.9.5

packages:
- kubernetes
Expand Down
18 changes: 9 additions & 9 deletions stack-9.0.2-aeson2.yaml.lock
Original file line number Diff line number Diff line change
Expand Up @@ -7,20 +7,20 @@ packages:
- completed:
hackage: oidc-client-0.6.0.0@sha256:2079dc5c9dfb5b3e2fa93098254ca16787c01a0cd3634b1d84afe84c9a6c4825,3368
pantry-tree:
size: 1298
sha256: c8dac64944a1e60d14958067e1992732effe723d60353690720c34b4d126af48
size: 1298
original:
hackage: oidc-client-0.6.0.0@sha256:2079dc5c9dfb5b3e2fa93098254ca16787c01a0cd3634b1d84afe84c9a6c4825,3368
hackage: oidc-client-0.6.0.0
- completed:
hackage: jose-jwt-0.9.4@sha256:6db77f81cfcf81cf7faf8a4dc4b2110c1603dbb94249d49d069a17b4897e9d69,3560
hackage: jose-jwt-0.9.5@sha256:c02db1ef32e582330054d8befa412215afeeb597cb8756dadc75407ba776a159,3557
pantry-tree:
sha256: 778e69fddd33a43f9a2322d4404a27c3f7474295bbdad6f65325fe9c9fee3d86
size: 1231
sha256: fd3145cd8ab15be77d49522c454e86f17cf0f233ada7a623457926dbf6ea47e4
original:
hackage: jose-jwt-0.9.4@sha256:6db77f81cfcf81cf7faf8a4dc4b2110c1603dbb94249d49d069a17b4897e9d69,3560
hackage: jose-jwt-0.9.5
snapshots:
- completed:
size: 618884
url: https://raw.githubusercontent.com/commercialhaskell/stackage-snapshots/master/lts/19/7.yaml
sha256: 57d4ce67cc097fea2058446927987bc1f7408890e3a6df0da74e5e318f051c20
original: lts-19.7
sha256: 6d1532d40621957a25bad5195bfca7938e8a06d923c91bc52aa0f3c41181f2d4
size: 619204
url: https://raw.githubusercontent.com/commercialhaskell/stackage-snapshots/master/lts/19/33.yaml
original: lts-19.33
8 changes: 8 additions & 0 deletions stack-9.2.8.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,8 @@
resolver: lts-20.26

extra-deps:
- oidc-client-0.7.0.1

packages:
- kubernetes
- kubernetes-client
19 changes: 19 additions & 0 deletions stack-9.2.8.yaml.lock
Original file line number Diff line number Diff line change
@@ -0,0 +1,19 @@
# This file was autogenerated by Stack.
# You should not edit this file by hand.
# For more information, please see the documentation at:
# https://docs.haskellstack.org/en/stable/lock_files

packages:
- completed:
hackage: oidc-client-0.7.0.1@sha256:557341f7521e62c09abddf0d06c8e8acce119d3a9a4c4ffac1ab8ca3fc0e5067,3382
pantry-tree:
sha256: 51cfcd6c170923db24ba297ac9937961f6b26e041ceec8ff09500e61017b433b
size: 1298
original:
hackage: oidc-client-0.7.0.1
snapshots:
- completed:
sha256: 5a59b2a405b3aba3c00188453be172b85893cab8ebc352b1ef58b0eae5d248a2
size: 650475
url: https://raw.githubusercontent.com/commercialhaskell/stackage-snapshots/master/lts/20/26.yaml
original: lts-20.26

0 comments on commit 3e69576

Please sign in to comment.