Skip to content

Commit 2e216d5

Browse files
committed
CI: GitHub: *Cabal-Linux: enable test suite for Store-remote
1 parent 06fcfd8 commit 2e216d5

File tree

2 files changed

+18
-7
lines changed

2 files changed

+18
-7
lines changed

.github/workflows/Cabal-Linux.yml

Lines changed: 10 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -17,11 +17,11 @@ jobs:
1717
continue-on-error: true
1818
strategy:
1919
matrix:
20-
packageRoots: [ ./hnix-store-core, ./hnix-store-remote ]
20+
packageRoot: [ hnix-store-core, hnix-store-remote ]
2121
ghc: [ "8.10", "8.4" ]
2222
defaults:
2323
run:
24-
working-directory: "${{ matrix.packageRoots }}"
24+
working-directory: "./${{ matrix.packageRoot }}"
2525
steps:
2626
- uses: actions/checkout@v2
2727
- name: "Cache of ~/.cabal/packages, ~/.cabal/store and dist-newstyle"
@@ -38,6 +38,11 @@ jobs:
3838
- name: "Install additional system packages"
3939
run: sudo apt install libsodium-dev
4040
- run: cabal v2-install tasty-discover
41-
- run: "cabal v2-configure --disable-optimization --enable-tests --enable-deterministic"
42-
- run: "cabal v2-build"
43-
- run: "cabal v2-test"
41+
- run: cabal v2-configure --disable-optimization --enable-tests --enable-deterministic
42+
if: matrix.packageRoot == 'hnix-store-core'
43+
- run: |
44+
cabal v2-configure --disable-optimization --enable-tests --enable-deterministic \
45+
-f io-testsuite # Enable the Store-remote test suite
46+
if: matrix.packageRoot == 'hnix-store-remote'
47+
- run: cabal v2-build
48+
- run: cabal v2-test

.github/workflows/On-Release-Cabal-Linux.yml

Lines changed: 8 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -10,14 +10,15 @@ jobs:
1010
build10:
1111
name: "GHC"
1212
runs-on: ubuntu-latest
13+
continue-on-error: true
1314
strategy:
1415
matrix:
15-
packageRoots: [ ./hnix-store-core, ./hnix-store-remote ]
16+
packageRoot: [ hnix-store-core, hnix-store-remote ]
1617
# Since CI by default tests boundary GHCs, test middle versions of GHCs
1718
ghc: [ "8.8", "8.6"]
1819
defaults:
1920
run:
20-
working-directory: "${{ matrix.packageRoots }}"
21+
working-directory: "./${{ matrix.packageRoot }}"
2122
steps:
2223
- uses: actions/checkout@v2
2324
with:
@@ -40,5 +41,10 @@ jobs:
4041
- name: "Install Nix"
4142
uses: cachix/install-nix-action@v12
4243
- run: cabal v2-configure --disable-optimization --enable-tests --enable-deterministic
44+
if: matrix.packageRoot == 'hnix-store-core'
45+
- run: |
46+
cabal v2-configure --disable-optimization --enable-tests --enable-deterministic \
47+
-f io-testsuite # Enable the Store-remote test suite
48+
if: matrix.packageRoot == 'hnix-store-remote'
4349
- run: cabal v2-build
4450
- run: cabal v2-test

0 commit comments

Comments
 (0)