Skip to content

Commit

Permalink
Run unit tests in GitHub actions
Browse files Browse the repository at this point in the history
  • Loading branch information
koalaman committed Sep 1, 2024
1 parent 8a1b24c commit 52234b1
Showing 1 changed file with 23 additions and 0 deletions.
23 changes: 23 additions & 0 deletions .github/workflows/build.yml
Original file line number Diff line number Diff line change
Expand Up @@ -42,6 +42,29 @@ jobs:
name: source
path: source/

run_tests:
name: Run tests
needs: package_source
runs-on: ubuntu-latest
steps:
- name: Download artifacts
uses: actions/download-artifact@v4

- name: Install dependencies
run: |
apt-get update && apt-get install ghc cabal-install
cabal update
- name: Unpack source
run: |
cd source
tar --strip-components=1 xvzf source.tar.gz
- name: Build and run tests
run: |
cd source
cabal test
build_source:
name: Build
needs: package_source
Expand Down

0 comments on commit 52234b1

Please sign in to comment.