slackbuilder/.gitea/workflows/build.yml
Eugen Wissner aae58ce042
Some checks failed
Build / audit (push) Failing after 18s
Build / test (push) Failing after 12s
Switch to the haskell image
2024-03-06 13:40:36 +01:00

41 lines
1.1 KiB
YAML

name: Build
on:
push:
pull_request:
branches: [master]
jobs:
audit:
runs-on: haskell
env:
hlint_version: 3.8
steps:
- name: Set up environment
run: |
apt-get update -y
apt-get upgrade -y
apt-get install -y nodejs pkg-config wget2
- uses: actions/checkout@v4
- name: Install dependencies
run: |
wget2 -nv -O- \
https://github.com/ndmitchell/hlint/releases/download/v${{ env.hlint_version }}/hlint-${{ env.hlint_version }}-x86_64-linux.tar.gz \
| tar zx
- run: ./hlint-${{ env.hlint_version }}/hlint -- src lib tests
test:
runs-on: haskell
steps:
- name: Set up environment
run: |
apt-get update -y
apt-get upgrade -y
apt-get install -y nodejs pkg-config liblzma-dev
apk add --no-cache git bash curl build-base readline-dev openssl-dev zlib-dev libpq-dev gmp-dev
- uses: actions/checkout@v4
- name: Install dependencies
run: |
cabal update
- run: cabal test --test-show-details=streaming