Skip to content

Commit

Permalink
fix: gha
Browse files Browse the repository at this point in the history
  • Loading branch information
patrickkabwe committed Apr 16, 2024
1 parent 3a344a0 commit e4e3f44
Showing 1 changed file with 24 additions and 4 deletions.
28 changes: 24 additions & 4 deletions .github/workflows/test.yml
Original file line number Diff line number Diff line change
Expand Up @@ -40,10 +40,30 @@ jobs:
uses: actions/setup-node@v4
with:
node-version: ${{ matrix.node-version }}
- run: yarn install
- run: yarn audit:fix
- run: yarn audit signatures
- run: yarn test
- uses: pnpm/action-setup@v3
name: Install pnpm
with:
version: 8
run_install: false

- name: Get pnpm store directory
shell: bash
run: |
echo "STORE_PATH=$(pnpm store path --silent)" >> $GITHUB_ENV
- uses: actions/cache@v4
name: Setup pnpm cache
with:
path: ${{ env.STORE_PATH }}
key: ${{ runner.os }}-pnpm-store-${{ hashFiles('**/pnpm-lock.yaml') }}
restore-keys: |
${{ runner.os }}-pnpm-store-
- name: Install dependencies
run: pnpm install
- run: pnpm audit signatures
- run: pnpm build
- run: pnpm test

# separate job to set as required in branch protection,
# as the build names above change each time Node versions change
Expand Down

0 comments on commit e4e3f44

Please sign in to comment.