slackbuilder/.gitea/workflows/build.yml

41 lines
1.1 KiB
YAML
Raw Normal View History

2023-12-09 20:23:30 +01:00
name: Build
on:
push:
pull_request:
branches: [master]
jobs:
audit:
2024-03-05 23:06:32 +01:00
runs-on: haskell
2024-03-06 13:40:36 +01:00
env:
hlint_version: 3.8
2023-12-09 20:23:30 +01:00
steps:
- name: Set up environment
run: |
2024-03-05 23:06:32 +01:00
apt-get update -y
apt-get upgrade -y
2024-03-06 13:40:36 +01:00
apt-get install -y nodejs pkg-config wget2
2023-12-09 20:23:30 +01:00
- uses: actions/checkout@v4
- name: Install dependencies
run: |
2024-03-06 13:40:36 +01:00
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
2023-12-09 20:23:30 +01:00
test:
2024-03-06 13:40:36 +01:00
runs-on: haskell
2023-12-09 20:23:30 +01:00
steps:
- name: Set up environment
run: |
2024-03-06 13:40:36 +01:00
apt-get update -y
apt-get upgrade -y
apt-get install -y nodejs pkg-config liblzma-dev
2023-12-09 20:23:30 +01:00
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: |
2024-03-06 13:40:36 +01:00
cabal update
- run: cabal test --test-show-details=streaming