From 195b326bcd6e129b2b3222c384b34dba7c0b5c0d Mon Sep 17 00:00:00 2001 From: Anton Sorokin Date: Sat, 8 Oct 2022 15:23:11 +0300 Subject: [PATCH] fixup! fixup! fixup! fixup! fixup! fixup! fixup! [#164] Add workflow for running Windows tests on CI --- .github/workflows/ci.yml | 18 +++++++++++++----- 1 file changed, 13 insertions(+), 5 deletions(-) diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml index 6fa7b5ae..40cd3acb 100644 --- a/.github/workflows/ci.yml +++ b/.github/workflows/ci.yml @@ -37,6 +37,15 @@ jobs: path: ~/.stack key: ${{ runner.os }}-${{ matrix.ghc }}-stack + - uses: actions/cache@v3 + name: Cache AppData/Local/Programs/stack + with: + path: ~/AppData/Local/Programs/stack + key: ${{ runner.os }}-${{ matrix.ghc }}-stack + + +# When editing this action, make sure it can run without using cached folders. +# Yes, it tries to install mingw-w64-x86_64-pcre twice - name: install pacman dependencies run: stack --system-ghc exec -- pacman -S --noconfirm pkgconf; @@ -52,12 +61,11 @@ jobs: run: | stack build --system-ghc --stack-yaml ${{ matrix.stackyaml }} --test --bench --no-run-tests --no-run-benchmarks --ghc-options '-Werror' --haddock --no-haddock-deps -# commented to cache .stack (golden tests are not passing yet) -# - name: stack test xrefcheck:xrefcheck-tests -# run: | -# stack test --system-ghc --stack-yaml ${{ matrix.stackyaml }} -# xrefcheck:xrefcheck-tests + - name: stack test xrefcheck:xrefcheck-tests + run: | + stack test --system-ghc --stack-yaml ${{ matrix.stackyaml }} xrefcheck:xrefcheck-tests +# golden tests are not passing yet # - uses: mig4/setup-bats@v1 # name: Setup bats # - name: Golden tests