diff --git a/.github/workflows/test.yml b/.github/workflows/test.yml index 91f6587..ac5c08f 100644 --- a/.github/workflows/test.yml +++ b/.github/workflows/test.yml @@ -95,10 +95,11 @@ jobs: with: extra_nix_config: | access-tokens = github.com=${{ secrets.GITHUB_TOKEN }} - - name: JAVA_HOME should not bleed into the environment + - name: JAVA_HOME should not bleed into the environment in pure mode uses: ./ with: packages: hello + pure: true script: | hello [[ -z "${JAVA_HOME}" ]] && exit 0 || exit 1 @@ -126,6 +127,24 @@ jobs: hello command -v docker + test-pure-flakes: + runs-on: ubuntu-latest + steps: + - uses: actions/checkout@v4 + - name: Install Nix + uses: cachix/install-nix-action@v27 + with: + extra_nix_config: | + access-tokens = github.com=${{ secrets.GITHUB_TOKEN }} + - name: JAVA_HOME should not bleed into the environment in pure mode + uses: ./ + with: + flakes: .#hello + pure: true + script: | + hello + [[ -z "${JAVA_HOME}" ]] && exit 0 || exit 1 + test-local-flake-in-working-directory: runs-on: ubuntu-latest steps: