summaryrefslogtreecommitdiff
path: root/deps/irc-conduit/.github/workflows/ci.yaml
blob: 9034267ba73f8f2379248e2fbd78314c2ca4ca3d (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
name: Run tests

on: pull_request

jobs:
  lint:
    runs-on: ubuntu-latest
    steps:
      - uses: actions/checkout@v3
      - uses: haskell/actions/setup@v2.4.3
        with:
          enable-stack: true
      - name: Setup
        run: |
          stack --no-terminal install stylish-haskell hlint
      - name: Lint
        run: |
          set -ex
          stack --no-terminal exec -- hlint --no-summary .
          stack --no-terminal exec -- find . -name '*.hs' -exec stylish-haskell -i {} \;
          git diff --exit-code
  test:
    runs-on: ubuntu-latest
    steps:
      - uses: actions/checkout@v3
      - uses: haskell/actions/setup@v2.4.3
        with:
          enable-stack: true
      - name: Build
        run: |
          stack --no-terminal build