Skip to content

Commit 09006bc

Browse files
authored
[cicd] add NIX_PATH to tests (#708)
## Summary Testing this fix out (I can't remember if exported variables are available across steps in GHA) ## How was it tested? Testing in CICD
1 parent 5158452 commit 09006bc

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

.github/workflows/cli-tests.yaml

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -101,7 +101,9 @@ jobs:
101101
echo "NIX_PATH=$NIX_PATH" >> $GITHUB_ENV
102102
echo "PATH=$PATH" >> $GITHUB_ENV
103103
- name: Run tests
104-
run: go test -race -cover -v ./...
104+
run: |
105+
export NIX_PATH=nixpkgs=https://github.com/nixos/nixpkgs/tarball/nixos-unstable
106+
go test -race -cover -v ./...
105107
106108
auto-nix-install: # ensure Devbox installs nix and works properly after installation.
107109
runs-on: ubuntu-latest

0 commit comments

Comments
 (0)