From 05c0a5dead451c8e5b43c9542d97e7cee5e618fa Mon Sep 17 00:00:00 2001 From: jao Date: Mon, 31 Mar 2025 21:07:44 +0100 Subject: forgejo syntax fixes --- .forgejo/workflows/test.yml | 39 ++++++++++++++++++++++----------------- 1 file 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 -- cgit v1.2.3