@@ -3,6 +3,16 @@ name: CI
33# Trigger the workflow on push or pull request, but only for the master branch
44on :
55 pull_request :
6+ paths :
7+ - ' lib/**'
8+ - ' src/**'
9+ - ' test/**'
10+ - ' lib/base/base.agda-lib'
11+ - ' agda2hs.cabal'
12+ - ' cabal.project'
13+ - ' Makefile'
14+ - ' .github/workflows/**.yml'
15+ branches : [master]
616 push :
717 paths :
818 - ' lib/**'
@@ -52,12 +62,13 @@ jobs:
5262 cabal build --dry-run
5363 # cabal build --dry-run creates dist-newstyle/cache/plan.json
5464
55- # Install fix-whitespace since we need it for tests.
56- # This is done after the freeze to make sure we re-use the packages
57- - name : Install fix-whitespace
58- run : |
59- echo "import: cabal.project" > cabal.project.ci
60- cabal install fix-whitespace --project-file=cabal.project.ci
65+ # Andreas, 2025-11-28, AIM XLI, use fix-whitespace-action
66+ # # Install fix-whitespace since we need it for tests.
67+ # # This is done after the freeze to make sure we re-use the packages
68+ # - name: Install fix-whitespace
69+ # run: |
70+ # echo "import: cabal.project" > cabal.project.ci
71+ # cabal install fix-whitespace --project-file=cabal.project.ci
6172
6273 # Cache the contents of ~/.cabal/store to avoid rebuilding dependencies for
6374 # every build. `restore-keys` makes it use the latest cache even if the
7384 key : ${{ runner.os }}-${{ matrix.ghc }}-${{ hashFiles('**/plan.json') }}
7485 restore-keys : ${{ runner.os }}-${{ matrix.ghc }}-
7586
87+ - name : Run fix-whitespace
88+ uses : andreasabel/fix-whitespace-action@v1
89+
7690 - name : Run test suite
77- run : make test && git diff --exit-code
91+ run : make test-on-CI && git diff --exit-code
7892
7993 - name : Generate Prelude HTML
8094 if : ${{ (matrix.ghc == matrix.deploy-ghc) && (github.ref == 'refs/heads/master') }}
0 commit comments