Skip to content

Commit 73e75d1

Browse files
authored
Merge pull request #81 from cachix/test-nix-master
test nix master with cachix
2 parents 2689c27 + 448ed60 commit 73e75d1

2 files changed

Lines changed: 28 additions & 1 deletion

File tree

.github/workflows/test.yml

Lines changed: 24 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
name: "cachix-action test"
22
on:
33
pull_request:
4-
push:
4+
push:
55
branches:
66
- master
77

@@ -42,6 +42,7 @@ jobs:
4242
- run: nix-build test.nix
4343

4444
private-cache:
45+
if: ${{ github.ref == 'refs/heads/master' }}
4546
strategy:
4647
matrix:
4748
os: [ubuntu-latest, macos-latest]
@@ -76,3 +77,25 @@ jobs:
7677
signingKey: '${{ secrets.CACHIX_SIGNING_KEY }}'
7778
installCommand: 'nix-env -j8 -f https://cachix.org/api/v1/install -iA cachix'
7879
- run: nix-build test.nix
80+
81+
nix-master:
82+
strategy:
83+
matrix:
84+
os: [ubuntu-latest, macos-latest]
85+
runs-on: ${{ matrix.os }}
86+
steps:
87+
- uses: actions/checkout@v2
88+
- name: Install Nix
89+
uses: cachix/install-nix-action@v13
90+
with:
91+
nix_path: nixpkgs=channel:nixos-20.03
92+
install_url: https://nixos-nix-install-tests.cachix.org/serve/lb41az54kzk6j12p81br4bczary7m145/install
93+
install_options: '--tarball-url-prefix https://nixos-nix-install-tests.cachix.org/serve'
94+
- run: yarn install --frozen-lockfile
95+
- run: yarn build
96+
- name: Test public cache
97+
uses: ./
98+
with:
99+
name: cachix-action
100+
signingKey: '${{ secrets.CACHIX_SIGNING_KEY }}'
101+
- run: nix-build test.nix

dist/main/list-nix-store.sh

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -12,6 +12,10 @@ for file in /nix/store/*; do
1212
# Skip .check file produced by --keep-failed
1313
continue
1414
;;
15+
*.lock)
16+
# Skip .lock files
17+
continue
18+
;;
1519
*)
1620
echo "$file"
1721
;;

0 commit comments

Comments
 (0)