summaryrefslogtreecommitdiffhomepage
path: root/.forgejo/workflows/test.yml
blob: 3c0264a4d2e0d8b5e9cdcf2fc994bc4685512f1b (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
on:
  pull_request:
  branches:
    - 'master'
    - 'forgejo'

jobs:
  actions:
    strategy:
      matrix:
        - version: [9.6, 9.4, 8]

    image: haskell:${{ matrix.version }}

    steps:
      - name: apt
        run: |
          apt-get update
          apt-get install -y xorg-dev libxrandr-dev libpango1.0-dev
          apt-get install -y libasound2-dev libxpm-dev libmpd-dev
          apt-get install -y hspec-discover hlint
      - name: hlint
        run: hlint src
      - name: cabal tests
        run: |
          cabal update
          cabal test --enable-tests -fall_extensions
          cabal test --enable-tests -fall_extensions -f-with_xrender