Skip to content
This repository has been archived by the owner on Jul 16, 2024. It is now read-only.

Commit

Permalink
pass cachix auth token to action
Browse files Browse the repository at this point in the history
  • Loading branch information
fubhy committed Nov 9, 2023
1 parent 4c3bde8 commit 07383db
Show file tree
Hide file tree
Showing 4 changed files with 11 additions and 1 deletion.
6 changes: 5 additions & 1 deletion .github/actions/setup/action.yml
Original file line number Diff line number Diff line change
@@ -1,5 +1,9 @@
name: Setup
description: Perform standard setup and install dependencies.
inputs:
cachixAuthToken:
description: The cachix auth token
required: true

runs:
using: composite
Expand All @@ -16,7 +20,7 @@ runs:
uses: cachix/cachix-action@v12
with:
name: effect-ts
authToken: "${{ secrets.CACHIX_AUTH_TOKEN }}"
authToken: ${{ inputs.cachixAuthToken }}
- name: Setup direnv
uses: HatsuneMiku3939/direnv-action@v1
with:
Expand Down
2 changes: 2 additions & 0 deletions .github/workflows/build.yml
Original file line number Diff line number Diff line change
Expand Up @@ -21,6 +21,8 @@ jobs:
fetch-depth: 0
- name: Install dependencies
uses: ./.github/actions/setup
with:
cachixAuthToken: ${{ secrets.CACHIX_AUTH_TOKEN }}
- run: pnpm build
- name: Check source state
run: git add src && git diff-index --cached HEAD --exit-code src
Expand Down
2 changes: 2 additions & 0 deletions .github/workflows/check.yml
Original file line number Diff line number Diff line change
Expand Up @@ -19,5 +19,7 @@ jobs:
- uses: actions/checkout@v3
- name: Install dependencies
uses: ./.github/actions/setup
with:
cachixAuthToken: ${{ secrets.CACHIX_AUTH_TOKEN }}
- run: pnpm check
- run: pnpm lint
2 changes: 2 additions & 0 deletions .github/workflows/test.yml
Original file line number Diff line number Diff line change
Expand Up @@ -22,4 +22,6 @@ jobs:
- uses: actions/checkout@v3
- name: Install dependencies
uses: ./.github/actions/setup
with:
cachixAuthToken: ${{ secrets.CACHIX_AUTH_TOKEN }}
- run: pnpm vitest

0 comments on commit 07383db

Please sign in to comment.