diff options
-rw-r--r-- | .forgejo/workflows/test.yml | 13 |
1 files changed, 8 insertions, 5 deletions
diff --git a/.forgejo/workflows/test.yml b/.forgejo/workflows/test.yml index 1948fe4..f67eda7 100644 --- a/.forgejo/workflows/test.yml +++ b/.forgejo/workflows/test.yml @@ -1,5 +1,6 @@ on: pull_request: + types: [opened, synchronize, reopened] push: branches: @@ -11,18 +12,20 @@ jobs: matrix: - version: [9.6, 9.4, 8] - image: haskell:${{ matrix.version }} + runs-on: docker + container: + image: haskell:${{ matrix.version }} steps: - - name: apt + - name: apt ${{ matrix.version }} run: | apt-get update apt-get install -y xorg-dev libxrandr-dev libpango1.0-dev apt-get install -y libasound2-dev libxpm-dev libmpd-dev apt-get install -y hspec-discover hlint - - name: hlint - run: hlint src - - name: cabal tests + - name: hlint ${{ matrix.version }} + run: hlint ./src + - name: cabal tests ${{ matrix.version }} run: | cabal update cabal test --enable-tests -fall_extensions |