Skip to content

Commit

Permalink
ci: add a test for pushPaths
Browse files Browse the repository at this point in the history
  • Loading branch information
sandydoo committed May 6, 2024
1 parent 8ed48d2 commit 2b948d9
Showing 1 changed file with 22 additions and 0 deletions.
22 changes: 22 additions & 0 deletions .github/workflows/test.yml
Original file line number Diff line number Diff line change
Expand Up @@ -69,6 +69,28 @@ jobs:
useDaemon: ${{ matrix.useDaemon }}
- run: nix-build test.nix

push-paths:
strategy:
matrix:
os: [ubuntu-latest, macos-latest]
runs-on: ${{ matrix.os }}
steps:
- uses: actions/checkout@v4
- run: yarn install --frozen-lockfile
- run: yarn build
- uses: cachix/install-nix-action@v26
- id: paths
run: |
paths=$(nix-instantiate test.nix --help | tr '\n' ' ')
echo "OUT_PATHS=$paths" >> $GITHUB_OUTPUT
- name: Test pushPaths
uses: ./
with:
name: cachix-action-private
signingKey: '${{ secrets.CACHIX_SIGNING_KEY_PRIVATE }}'
authToken: '${{ secrets.CACHIX_AUTH_TOKEN }}'
pathsToPush: '${{ steps.paths.outputs.OUT_PATHS }}'

installCommand:
strategy:
matrix:
Expand Down

0 comments on commit 2b948d9

Please sign in to comment.