Updated dockerfile / ci setup
This commit is contained in:
parent
de969f461b
commit
14372a7ce3
2 changed files with 32 additions and 48 deletions
|
|
@ -12,12 +12,8 @@ jobs:
|
|||
build:
|
||||
runs-on: docker
|
||||
container:
|
||||
image: haskell:9.10
|
||||
image: elland/haddock2:latest
|
||||
steps:
|
||||
- name: Install Node.js (for actions)
|
||||
run: |
|
||||
curl -fsSL https://deb.nodesource.com/setup_22.x | bash -
|
||||
apt-get install -y nodejs
|
||||
- name: Checkout code
|
||||
uses: actions/checkout@v4
|
||||
- name: Check versions
|
||||
|
|
@ -49,13 +45,9 @@ jobs:
|
|||
test:
|
||||
runs-on: docker
|
||||
container:
|
||||
image: haskell:9.10
|
||||
image: elland/haddock2:latest
|
||||
needs: build
|
||||
steps:
|
||||
- name: Install Node.js (for actions)
|
||||
run: |
|
||||
curl -fsSL https://deb.nodesource.com/setup_22.x | bash -
|
||||
apt-get install -y nodejs
|
||||
- name: Checkout code
|
||||
uses: actions/checkout@v4
|
||||
- name: Cache Cabal packages
|
||||
|
|
@ -82,18 +74,11 @@ jobs:
|
|||
fourmolu:
|
||||
runs-on: docker
|
||||
container:
|
||||
image: haskell:9.10
|
||||
image: elland/haddock2:latest
|
||||
needs: build
|
||||
steps:
|
||||
- name: Install Node.js (for actions)
|
||||
run: |
|
||||
curl -fsSL https://deb.nodesource.com/setup_22.x | bash -
|
||||
apt-get install -y nodejs
|
||||
- name: Checkout code
|
||||
uses: actions/checkout@v4
|
||||
- name: Update Cabal package index
|
||||
run: cabal update
|
||||
- name: Install fourmolu
|
||||
run: cabal install fourmolu-0.18.0.0
|
||||
- name: Run fourmolu
|
||||
run: |
|
||||
find src test app -name "*.hs" -exec fourmolu --check-idempotence {} \; 2>/dev/null || true
|
||||
|
|
@ -102,18 +87,11 @@ jobs:
|
|||
hlint:
|
||||
runs-on: docker
|
||||
container:
|
||||
image: haskell:9.10
|
||||
image: elland/haddock2:latest
|
||||
needs: build
|
||||
steps:
|
||||
- name: Install Node.js (for actions)
|
||||
run: |
|
||||
curl -fsSL https://deb.nodesource.com/setup_22.x | bash -
|
||||
apt-get install -y nodejs
|
||||
- name: Checkout code
|
||||
uses: actions/checkout@v4
|
||||
- name: Update Cabal package index
|
||||
run: cabal update
|
||||
- name: Install hlint
|
||||
run: cabal install hlint
|
||||
- name: Run hlint
|
||||
run: |
|
||||
if [ -d src ]; then hlint src/; fi
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue