Skip to content

Drop older stack files, update remainder. Prepare kubernetes-api-clie… #26

Drop older stack files, update remainder. Prepare kubernetes-api-clie…

Drop older stack files, update remainder. Prepare kubernetes-api-clie… #26

Workflow file for this run

on:
workflow_dispatch:
pull_request:
push:
name: CI
jobs:
cabal:
name: Cabal / K8S ${{ matrix.k8s_release }} / GHC ${{ matrix.ghc }}
runs-on: ubuntu-latest
strategy:
fail-fast: false
# This full matrix at time of writing is 11 K8S versions * 6 compiler versions = 66,
# which is a little big for CI.
# Commented some older versions of each to make it manageable.
matrix:
k8s_release:
# - "1.20"
# - "1.21"
# - "1.22"
# - "1.23"
# - "1.24"
- "1.25"
- "1.26"
- "1.27"
- "1.28"
- "1.29"
- "1.30"
- "1.31"
- "1.32"
ghc:
# - "8.10.7"
# - "9.0.2"
- "9.2.8"
- "9.4.8"
- "9.6.6"
- "9.8.4"
steps:
- uses: cachix/install-nix-action@v27
- uses: actions/checkout@v4
- run: |
nix run .#set-cabal-version -- "${{matrix.k8s_release}}" cabal.project
cat cabal.project
- uses: haskell-actions/setup@v2
with:
ghc-version: ${{ matrix.ghc }}
cabal-version: "latest"
- run: |
cabal update
- run: |
cabal build all --enable-tests
- run: |
cabal test all
stack:
name: Stack / K8S ${{ matrix.k8s_release }} / GHC ${{ matrix.compiler.ghc }}
runs-on: ubuntu-latest
strategy:
fail-fast: false
# This full matrix at time of writing is 11 K8S versions * 7 compiler versions = 77,
# which is a little big for CI.
# Commented some older versions of each to make it manageable.
matrix:
k8s_release:
# - "1.20"
# - "1.21"
# - "1.22"
# - "1.23"
# - "1.24"
- "1.25"
- "1.26"
- "1.27"
- "1.28"
- "1.29"
- "1.30"
- "1.31"
- "1.32"
compiler:
- ghc: "9.6.6"
yaml: "stack-9.6.6.yaml"
- ghc: "9.8.4"
yaml: "stack-9.8.4.yaml"
- ghc: "9.10.2"
yaml: "stack-9.10.2.yaml"
- ghc: "9.12.2"
yaml: "stack.yaml"
steps:
- uses: cachix/install-nix-action@v27
- uses: actions/checkout@v4
- uses: haskell-actions/setup@v2
with:
ghc-version: ${{ matrix.compiler.ghc }}
enable-stack: true
stack-version: "latest"
- uses: actions/cache@v4
name: Cache ~/.stack
with:
path: ~/.stack
key: ${{ runner.os }}-${{ matrix.compiler.ghc }}-${{ matrix.compiler.yaml }}
- name: Build
run: |
nix run .#set-stack-version -- "${{matrix.k8s_release}}" "${{matrix.compiler.yaml}}"
stack build --stack-yaml ${{matrix.compiler.yaml}} --system-ghc --test --bench --no-run-tests --no-run-benchmarks
- name: Test
run: |
stack test --stack-yaml ${{matrix.compiler.yaml}} --system-ghc