summaryrefslogtreecommitdiff
path: root/.gitea/workflows/build.yml
blob: d0b5eb6bc3bb6cf63d3e1370668658163bf66455 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
name: Build

on:
  push:
  pull_request:
    branches: [master]

jobs:
  audit:
    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
      - uses: actions/checkout@v4
      - name: Install dependencies
        run: |
          cabal update
          cabal install hlint "--constraint=hlint ==3.8"
      - run: cabal exec 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
      - uses: actions/checkout@v4
      - name: Install dependencies
        run: |
          cabal update
      - run: cabal test --test-show-details=streaming