Skip to content

Commit

Permalink
Rev actions, use generate-matrix
Browse files Browse the repository at this point in the history
  • Loading branch information
pbrisbin committed Jan 6, 2025
1 parent 4456943 commit 1d466b8
Showing 1 changed file with 17 additions and 15 deletions.
32 changes: 17 additions & 15 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,17 @@ on:
branches: main

jobs:
generate:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- id: generate
uses: freckle/stack-action/generate-matrix@v4
outputs:
stack-yamls: ${{ steps.generate.outputs.stack-yamls }}

test:
needs: generate
runs-on: ubuntu-latest
services:
faktory:
Expand All @@ -19,29 +29,21 @@ jobs:

strategy:
matrix:
stack-yaml:
- stack-nightly.yaml # ghc-9.8
- stack.yaml # ghc-9.6
- stack-lts-21.25.yaml # ghc-9.4
- stack-lts-20.26.yaml # ghc-9.2
- stack-lts-19.33.yaml # ghc-9.0
- stack-lts-18.28.yaml # ghc-8.10
- stack-lts-16.31.yaml # ghc-8.8
stack-yaml: ${{ fromJSON(needs.generate.outputs.stack-yamls) }}
fail-fast: false

steps:
- uses: actions/checkout@v3
- uses: freckle/stack-action@v4
with:
stack-yaml: ${{ matrix.stack-yaml }}
- uses: actions/checkout@v4
- uses: freckle/stack-action@v5
env:
STACK_YAML: ${{ matrix.stack-yaml }}
FAKTORY_URL: tcp://localhost:7419

hlint:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v2
- uses: haskell/actions/hlint-setup@v2
- uses: haskell/actions/hlint-run@v2
- uses: actions/checkout@v4
- uses: haskell-actions/hlint-setup@v2
- uses: haskell-actions/hlint-run@v2
with:
fail-on: warning

0 comments on commit 1d466b8

Please sign in to comment.