Skip to content

Commit

Permalink
CI: GitHub: *Cabal-Linux: enable test suite for Store-remote
Browse files Browse the repository at this point in the history
  • Loading branch information
Anton-Latukha committed Dec 15, 2020
1 parent 4af4a31 commit c55ba79
Show file tree
Hide file tree
Showing 2 changed files with 18 additions and 7 deletions.
15 changes: 10 additions & 5 deletions .github/workflows/Cabal-Linux.yml
Original file line number Diff line number Diff line change
Expand Up @@ -17,11 +17,11 @@ jobs:
continue-on-error: true
strategy:
matrix:
packageRoots: [ ./hnix-store-core, ./hnix-store-remote ]
packageRoot: [ hnix-store-core, hnix-store-remote ]
ghc: [ "8.10", "8.4" ]
defaults:
run:
working-directory: "${{ matrix.packageRoots }}"
working-directory: "./${{ matrix.packageRoot }}"
steps:
- uses: actions/checkout@v2
- name: "Cache of ~/.cabal/packages, ~/.cabal/store and dist-newstyle"
Expand All @@ -37,6 +37,11 @@ jobs:
ghc-version: ${{ matrix.ghc }}
- name: "Install additional system packages"
run: sudo apt install libsodium-dev
- run: "cabal v2-configure --disable-optimization --enable-tests --enable-deterministic"
- run: "cabal v2-build"
- run: "cabal v2-test"
- run: cabal v2-configure --disable-optimization --enable-tests --enable-deterministic
if: matrix.packageRoot == 'hnix-store-core'
- run: |
cabal v2-configure --disable-optimization --enable-tests --enable-deterministic \
-f io-testsuite # Enable the Store-remote test suite
if: matrix.packageRoot == 'hnix-store-remote'
- run: cabal v2-build
- run: cabal v2-test
10 changes: 8 additions & 2 deletions .github/workflows/On-Release-Cabal-Linux.yml
Original file line number Diff line number Diff line change
Expand Up @@ -10,14 +10,15 @@ jobs:
build10:
name: "GHC"
runs-on: ubuntu-latest
continue-on-error: true
strategy:
matrix:
packageRoots: [ ./hnix-store-core, ./hnix-store-remote ]
packageRoot: [ hnix-store-core, hnix-store-remote ]
# Since CI by default tests boundary GHCs, test middle versions of GHCs
ghc: [ "8.8", "8.6"]
defaults:
run:
working-directory: "${{ matrix.packageRoots }}"
working-directory: "./${{ matrix.packageRoot }}"
steps:
- uses: actions/checkout@v2
with:
Expand All @@ -39,5 +40,10 @@ jobs:
- name: "Install Nix"
uses: cachix/install-nix-action@v12
- run: cabal v2-configure --disable-optimization --enable-tests --enable-deterministic
if: matrix.packageRoot == 'hnix-store-core'
- run: |
cabal v2-configure --disable-optimization --enable-tests --enable-deterministic \
-f io-testsuite # Enable the Store-remote test suite
if: matrix.packageRoot == 'hnix-store-remote'
- run: cabal v2-build
- run: cabal v2-test

0 comments on commit c55ba79

Please sign in to comment.