From 5d00e90267828ebeb25c098fadf0538cef0a728e Mon Sep 17 00:00:00 2001 From: Ezri Zhu Date: Sat, 2 Nov 2024 17:10:19 -0400 Subject: [PATCH] add nix shell ci --- .github/workflows/test.yaml | 16 ++++++++++++++++ 1 file changed, 16 insertions(+) diff --git a/.github/workflows/test.yaml b/.github/workflows/test.yaml index fd4ae70e..f26cf14d 100644 --- a/.github/workflows/test.yaml +++ b/.github/workflows/test.yaml @@ -178,6 +178,22 @@ jobs: ./configure ./install-sh + shellcheck: + runs-on: ubuntu-latest + steps: + - name: Checkout + uses: actions/checkout@v4 + with: + ref: ${{ github.event.pull_request.head.sha }} + + - name: Install Nix + uses: DeterminateSystems/nix-installer-action@main + + - name: Run tests + run: | + nix-shell --run "sh scripts/run_tests.sh symlinks summary exit_status unzip_D_flag_commit hidden_variables command_substitution reuse_problematic_sandbox toplevel-perms empty_summary merge_multiple_dirs touch_and_rm_no_flag reuse_sandbox mkdir_on_file all-commit-cases unzip_D_flag_commit_without_cleanup unzip_no_flag pipeline touch_and_rm_D_flag_commit network ignore_flag dev_urandom nonexistent_sandbox" + + prerelease: needs: - test-checkout