1414 required : false
1515 type : string
1616
17- env :
18- ACTIONS_STEP_DEBUG : true
19-
2017jobs :
2118 public-cache :
2219 strategy :
4138 strategy :
4239 matrix :
4340 os : [ubuntu-latest, macos-latest]
44- useDaemon : [true, false]
4541 runs-on : ${{ matrix.os }}
4642 steps :
4743 - uses : actions/checkout@v7
5248 uses : ./
5349 with :
5450 name : cachix-action
55- useDaemon : ${{ matrix.useDaemon }}
5651 - run : nix-build test.nix
5752
5853 private-cache :
@@ -90,15 +85,15 @@ jobs:
9085 - id : paths
9186 run : |
9287 paths=$(nix-instantiate test.nix | tr '\n' ' ')
93- echo "OUT_PATHS=$paths" >> $GITHUB_OUTPUT
88+ echo "OUT_PATHS=$paths" >> " $GITHUB_OUTPUT"
9489 - name : Test pushPaths
9590 uses : ./
9691 with :
9792 name : cachix-action
9893 signingKey : " ${{ secrets.CACHIX_SIGNING_KEY }}"
9994 pathsToPush : " ${{ steps.paths.outputs.OUT_PATHS }}"
10095
101- installCommand :
96+ install-command :
10297 strategy :
10398 matrix :
10499 os : [ubuntu-latest, macos-latest]
@@ -108,7 +103,7 @@ jobs:
108103 - uses : cachix/install-nix-action@v31
109104 with :
110105 install_url : ${{ inputs.install_url }}
111- - name : Test private cache
106+ - name : Test custom install command
112107 uses : ./
113108 with :
114109 name : cachix-action
@@ -122,8 +117,6 @@ jobs:
122117 include :
123118 - os : ubuntu-latest
124119 system : x86_64-linux
125- - os : macos-15-intel
126- system : x86_64-darwin
127120 - os : macos-latest
128121 system : aarch64-darwin
129122 runs-on : ${{ matrix.os }}
@@ -147,3 +140,71 @@ jobs:
147140 name : cachix-action
148141 signingKey : " ${{ secrets.CACHIX_SIGNING_KEY }}"
149142 - run : nix-build test.nix
143+
144+ determinate-nix-pull :
145+ strategy :
146+ matrix :
147+ os : [ubuntu-latest, macos-latest]
148+ runs-on : ${{ matrix.os }}
149+ steps :
150+ - uses : actions/checkout@v7
151+ - uses : DeterminateSystems/determinate-nix-action@v3
152+ - name : Test public pull
153+ uses : ./
154+ with :
155+ name : cachix-action
156+ skipPush : true
157+ - run : nix-build test.nix
158+
159+ determinate-nix-push :
160+ if : ${{ github.secret_source == 'Actions' }}
161+ strategy :
162+ matrix :
163+ os : [ubuntu-latest, macos-latest]
164+ auth : [signing-key, auth-token-and-signing-key]
165+ runs-on : ${{ matrix.os }}
166+ steps :
167+ - uses : actions/checkout@v7
168+ - uses : DeterminateSystems/determinate-nix-action@v3
169+ - name : Test push with ${{ matrix.auth }}
170+ uses : ./
171+ with :
172+ name : ${{ matrix.auth == 'signing-key' && 'cachix-action' || 'cachix-action-private' }}
173+ authToken : ${{ matrix.auth == 'auth-token-and-signing-key' && secrets.CACHIX_AUTH_TOKEN || '' }}
174+ signingKey : ${{ matrix.auth == 'signing-key' && secrets.CACHIX_SIGNING_KEY || secrets.CACHIX_SIGNING_KEY_PRIVATE }}
175+ useDaemon : ${{ matrix.auth == 'signing-key' }}
176+ - run : nix-build test.nix
177+
178+ lix-pull :
179+ strategy :
180+ matrix :
181+ os : [ubuntu-latest, macos-latest]
182+ runs-on : ${{ matrix.os }}
183+ steps :
184+ - uses : actions/checkout@v7
185+ - uses : samueldr/lix-gha-installer-action@38852f089fdd2f5aabeec42c59c8d180bb8a15e9 # latest (Node 24)
186+ - name : Test public pull
187+ uses : ./
188+ with :
189+ name : cachix-action
190+ skipPush : true
191+ - run : nix-build test.nix
192+
193+ lix-push :
194+ if : ${{ github.secret_source == 'Actions' }}
195+ strategy :
196+ matrix :
197+ os : [ubuntu-latest, macos-latest]
198+ auth : [signing-key, auth-token-and-signing-key]
199+ runs-on : ${{ matrix.os }}
200+ steps :
201+ - uses : actions/checkout@v7
202+ - uses : samueldr/lix-gha-installer-action@38852f089fdd2f5aabeec42c59c8d180bb8a15e9 # latest (Node 24)
203+ - name : Test push with ${{ matrix.auth }}
204+ uses : ./
205+ with :
206+ name : ${{ matrix.auth == 'signing-key' && 'cachix-action' || 'cachix-action-private' }}
207+ authToken : ${{ matrix.auth == 'auth-token-and-signing-key' && secrets.CACHIX_AUTH_TOKEN || '' }}
208+ signingKey : ${{ matrix.auth == 'signing-key' && secrets.CACHIX_SIGNING_KEY || secrets.CACHIX_SIGNING_KEY_PRIVATE }}
209+ useDaemon : ${{ matrix.auth == 'signing-key' }}
210+ - run : nix-build test.nix
0 commit comments