Skip to content

Commit

Permalink
Add manual test _builds_ to the CI workflow
Browse files Browse the repository at this point in the history
  • Loading branch information
yfyf committed Dec 9, 2024
1 parent eb2c8ea commit 3f2c7d2
Showing 1 changed file with 29 additions and 2 deletions.
31 changes: 29 additions & 2 deletions .github/workflows/test.yml
Original file line number Diff line number Diff line change
Expand Up @@ -6,14 +6,20 @@ jobs:
prepare-matrix:
runs-on: ubuntu-latest
outputs:
integration_tests: ${{ steps.set-matrix.outputs.integration_tests }}
integration_tests: ${{ steps.set-matrix-integration.outputs.integration_tests }}
manual_tests: ${{ steps.set-matrix-manual.outputs.manual_tests }}
steps:
- uses: actions/checkout@v4
- id: set-matrix
- id: set-matrix-integration
run: |
FILES=$(find testing/integration -name '*.nix' -printf '"%p",')
FILES_JSON="[${FILES%,}]"
echo "integration_tests=${FILES_JSON}" >> $GITHUB_OUTPUT
- id: set-matrix-manual
run: |
FILES=$(find testing/manual -name '*.nix' -printf '"%p",')
FILES_JSON="[${FILES%,}]"
echo "manual_tests=${FILES_JSON}" >> $GITHUB_OUTPUT
integration-tests:
needs: prepare-matrix
Expand All @@ -34,6 +40,27 @@ jobs:
- uses: DeterminateSystems/magic-nix-cache-action@v8
- run: NIXPKGS_ALLOW_UNFREE=1 nix-build ${{ matrix.file }}


manual-tests-build-only:
needs: prepare-matrix
runs-on: ubuntu-latest
strategy:
fail-fast: false
matrix:
file: ${{fromJson(needs.prepare-matrix.outputs.manual_tests)}}
steps:
- name: Ensure KVM is usable by nix-build
run: sudo chmod a+rwx /dev/kvm
- uses: actions/checkout@v4
- uses: cachix/install-nix-action@v18
with:
nix_path: nixpkgs=channel:nixos-unstable
extra_nix_config: |
system-features = nixos-test benchmark big-parallel kvm
- uses: DeterminateSystems/magic-nix-cache-action@v8
- run: NIXPKGS_ALLOW_UNFREE=1 nix-build -A driverInteractive ${{ matrix.file }}


kiosk-tests:
runs-on: ubuntu-latest
steps:
Expand Down

0 comments on commit 3f2c7d2

Please sign in to comment.