summaryrefslogtreecommitdiff
path: root/deps/irc-conduit/.github/workflows/ci.yaml
diff options
context:
space:
mode:
Diffstat (limited to 'deps/irc-conduit/.github/workflows/ci.yaml')
-rw-r--r--deps/irc-conduit/.github/workflows/ci.yaml31
1 files changed, 31 insertions, 0 deletions
diff --git a/deps/irc-conduit/.github/workflows/ci.yaml b/deps/irc-conduit/.github/workflows/ci.yaml
new file mode 100644
index 0000000..9034267
--- /dev/null
+++ b/deps/irc-conduit/.github/workflows/ci.yaml
@@ -0,0 +1,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