diff --git a/.github/workflows/test.yml b/.github/workflows/test.yml index f7fdc23f..e65146f2 100644 --- a/.github/workflows/test.yml +++ b/.github/workflows/test.yml @@ -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 }}' + pushPaths: '${{ steps.paths.outputs.OUT_PATHS }}' + installCommand: strategy: matrix: