Skip to content

Commit c55ba79

Browse files
committed
CI: GitHub: *Cabal-Linux: enable test suite for Store-remote
1 parent 4af4a31 commit c55ba79

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"
@@ -37,6 +37,11 @@ jobs:
3737
ghc-version: ${{ matrix.ghc }}
3838
- name: "Install additional system packages"
3939
run: sudo apt install libsodium-dev
40-
- run: "cabal v2-configure --disable-optimization --enable-tests --enable-deterministic"
41-
- run: "cabal v2-build"
42-
- run: "cabal v2-test"
40+
- run: cabal v2-configure --disable-optimization --enable-tests --enable-deterministic
41+
if: matrix.packageRoot == 'hnix-store-core'
42+
- run: |
43+
cabal v2-configure --disable-optimization --enable-tests --enable-deterministic \
44+
-f io-testsuite # Enable the Store-remote test suite
45+
if: matrix.packageRoot == 'hnix-store-remote'
46+
- run: cabal v2-build
47+
- 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:
@@ -39,5 +40,10 @@ jobs:
3940
- name: "Install Nix"
4041
uses: cachix/install-nix-action@v12
4142
- run: cabal v2-configure --disable-optimization --enable-tests --enable-deterministic
43+
if: matrix.packageRoot == 'hnix-store-core'
44+
- run: |
45+
cabal v2-configure --disable-optimization --enable-tests --enable-deterministic \
46+
-f io-testsuite # Enable the Store-remote test suite
47+
if: matrix.packageRoot == 'hnix-store-remote'
4248
- run: cabal v2-build
4349
- run: cabal v2-test

0 commit comments

Comments
 (0)