Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
42 changes: 15 additions & 27 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -2,50 +2,38 @@ name: CI

on:
pull_request:
push:
branches: main

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

test:
needs: generate
runs-on: ubuntu-latest

strategy:
matrix:
stack-yaml:
- stack.yaml # ghc-9.0
- stack-lts-18.28.yaml # ghc-8.10
- stack-lts-16.31.yaml # ghc-8.8
- stack-lts-14.27.yaml # ghc-8.6
- stack-lts-12.26.yaml # ghc-8.4
stack-yaml: ${{ fromJSON(needs.generate.outputs.stack-yamls) }}
fail-fast: false

steps:
- uses: actions/checkout@v4
- uses: freckle/stack-cache-action@v2
- uses: freckle/stack-action@v5
with:
stack-yaml: ${{ matrix.stack-yaml }}
- uses: freckle/stack-action@v5
env:
STACK_YAML: ${{ matrix.stack-yaml }}

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

nightly:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- uses: freckle/stack-cache-action@v2
with:
stack-yaml: stack-nightly.yaml
- uses: freckle/stack-action@v5
env:
STACK_YAML: stack-nightly.yaml
with:
stack-arguments: --resolver nightly
1 change: 1 addition & 0 deletions .gitignore
Original file line number Diff line number Diff line change
@@ -1 +1,2 @@
.stack-work
stack*.yaml.lock
2 changes: 2 additions & 0 deletions .stack-all
Original file line number Diff line number Diff line change
@@ -0,0 +1,2 @@
[versions]
oldest = lts-12
1 change: 0 additions & 1 deletion stack-lts-12.21.yaml

This file was deleted.

12 changes: 0 additions & 12 deletions stack-lts-12.26.yaml.lock

This file was deleted.

1 change: 0 additions & 1 deletion stack-lts-13.1.yaml

This file was deleted.

12 changes: 0 additions & 12 deletions stack-lts-14.27.yaml.lock

This file was deleted.

12 changes: 0 additions & 12 deletions stack-lts-16.31.yaml.lock

This file was deleted.

12 changes: 0 additions & 12 deletions stack-lts-18.28.yaml.lock

This file was deleted.

File renamed without changes.
1 change: 1 addition & 0 deletions stack-lts13.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
resolver: lts-13.30
File renamed without changes.
File renamed without changes.
File renamed without changes.
1 change: 1 addition & 0 deletions stack-lts19.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
resolver: lts-19.33
1 change: 1 addition & 0 deletions stack-lts20.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
resolver: lts-20.26
1 change: 1 addition & 0 deletions stack-lts21.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
resolver: lts-21.25
1 change: 1 addition & 0 deletions stack-lts22.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
resolver: lts-22.44
1 change: 1 addition & 0 deletions stack-lts23.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
resolver: lts-23.27
1 change: 1 addition & 0 deletions stack-lts24.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
resolver: lts-24.0
2 changes: 1 addition & 1 deletion stack-nightly.yaml
Original file line number Diff line number Diff line change
@@ -1 +1 @@
resolver: nightly-2022-03-30
resolver: nightly-2024-07-18
12 changes: 0 additions & 12 deletions stack-nightly.yaml.lock

This file was deleted.

1 change: 0 additions & 1 deletion stack.yaml

This file was deleted.

1 change: 1 addition & 0 deletions stack.yaml
12 changes: 0 additions & 12 deletions stack.yaml.lock

This file was deleted.

Loading