Skip to content

Commit

Permalink
infra: switch to pnpm inside github action
Browse files Browse the repository at this point in the history
  • Loading branch information
khmm12 committed Jun 20, 2024
1 parent 4f631a0 commit 7e5a448
Showing 1 changed file with 8 additions and 16 deletions.
24 changes: 8 additions & 16 deletions .github/workflows/test.yml
Original file line number Diff line number Diff line change
Expand Up @@ -7,28 +7,20 @@ jobs:
matrix:
step:
- name: Lint
command: yarn lint
command: pnpm lint
- name: Typecheck
command: yarn typecheck
command: pnpm typecheck
- name: Unit tests
command: yarn unit-tests
command: pnpm unit-tests
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v3
- uses: actions/checkout@v4
- name: Use Node.js
uses: actions/setup-node@v3
uses: actions/setup-node@v4
with:
node-version: 18
- name: Get Yarn cache directory
id: yarn-cache-dir-path
run: echo "dir=$(yarn config get cacheFolder)" >> $GITHUB_OUTPUT
- name: Use Yarn Cache
uses: actions/cache@v3
with:
path: ${{ steps.yarn-cache-dir-path.outputs.dir }}
key: yarn-cache-${{ hashFiles('yarn.lock', '.yarnrc.yml') }}
restore-keys: yarn-cache-
node-version: 20
cache: 'pnpm'
- name: Install dependencies
run: yarn install --immutable
run: pnpm install --frozen-lockfile
- name: ${{ matrix.step.name }}
run: ${{ matrix.step.command }}

0 comments on commit 7e5a448

Please sign in to comment.