Skip to content

Commit

Permalink
ci: add failing flake test for pure option
Browse files Browse the repository at this point in the history
  • Loading branch information
workflow committed Sep 20, 2024
1 parent c98131d commit 9e00949
Showing 1 changed file with 20 additions and 1 deletion.
21 changes: 20 additions & 1 deletion .github/workflows/test.yml
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down Expand Up @@ -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:
Expand Down

0 comments on commit 9e00949

Please sign in to comment.