Skip to content

Commit 52234b1

Browse files
committed
Run unit tests in GitHub actions
1 parent 8a1b24c commit 52234b1

File tree

1 file changed

+23
-0
lines changed

1 file changed

+23
-0
lines changed

.github/workflows/build.yml

+23
Original file line numberDiff line numberDiff line change
@@ -42,6 +42,29 @@ jobs:
4242
name: source
4343
path: source/
4444

45+
run_tests:
46+
name: Run tests
47+
needs: package_source
48+
runs-on: ubuntu-latest
49+
steps:
50+
- name: Download artifacts
51+
uses: actions/download-artifact@v4
52+
53+
- name: Install dependencies
54+
run: |
55+
apt-get update && apt-get install ghc cabal-install
56+
cabal update
57+
58+
- name: Unpack source
59+
run: |
60+
cd source
61+
tar --strip-components=1 xvzf source.tar.gz
62+
63+
- name: Build and run tests
64+
run: |
65+
cd source
66+
cabal test
67+
4568
build_source:
4669
name: Build
4770
needs: package_source

0 commit comments

Comments
 (0)