diff options
-rw-r--r-- | .forgejo/workflows/test.yml | 39 |
1 files changed, 22 insertions, 17 deletions
diff --git a/.forgejo/workflows/test.yml b/.forgejo/workflows/test.yml index ab8891e..3c0264a 100644 --- a/.forgejo/workflows/test.yml +++ b/.forgejo/workflows/test.yml @@ -1,23 +1,28 @@ -on: [push, pull_request] +on: + pull_request: + branches: + - 'master' + - 'forgejo' jobs: - test: + actions: strategy: matrix: - GHC_VERSION: - - 9.6 - - 9.4 - - 8 - steps: - image: haskell:${{ matrix.GHC_VERSION }} - commands: - - 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 + - version: [9.6, 9.4, 8] - - hlint src + image: haskell:${{ matrix.version }} - - cabal update - - cabal test --enable-tests -fall_extensions - - cabal test --enable-tests -fall_extensions -f-with_xrender + steps: + - name: apt + 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 + run: | + cabal update + cabal test --enable-tests -fall_extensions + cabal test --enable-tests -fall_extensions -f-with_xrender |