summaryrefslogtreecommitdiff
path: root/deps/irc-client/.github/workflows/ci.yaml
diff options
context:
space:
mode:
authorLLLL Colonq <llll@colonq>2023-11-16 19:06:43 -0500
committerLLLL Colonq <llll@colonq>2023-11-16 19:06:43 -0500
commitdcef0b65069fb38fd0f6c4382353167f603ebff1 (patch)
tree45954ffe308c3dd056e6af4f734e6d2af89e5856 /deps/irc-client/.github/workflows/ci.yaml
Initial commit
Diffstat (limited to 'deps/irc-client/.github/workflows/ci.yaml')
-rw-r--r--deps/irc-client/.github/workflows/ci.yaml31
1 files changed, 31 insertions, 0 deletions
diff --git a/deps/irc-client/.github/workflows/ci.yaml b/deps/irc-client/.github/workflows/ci.yaml
new file mode 100644
index 0000000..9034267
--- /dev/null
+++ b/deps/irc-client/.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