Skip to content

Commit

Permalink
Replace yarn with pnpm in CI.
Browse files Browse the repository at this point in the history
  • Loading branch information
alessandrojean committed Jan 21, 2024
1 parent c9bd76a commit 2fe25b5
Showing 1 changed file with 22 additions and 8 deletions.
30 changes: 22 additions & 8 deletions .github/workflows/tests.yml
Original file line number Diff line number Diff line change
Expand Up @@ -15,19 +15,33 @@ jobs:
build:
name: Run tests and build
runs-on: ubuntu-latest
strategy:
matrix:
node-version: [20.x]
steps:
- name: Clone repo
uses: actions/checkout@v3
- name: Setup Node.js ${{ matrix.node-version }}
- name: Setup Node.js
uses: actions/setup-node@v3
with:
node-version: ${{ matrix.node-version }}
node-version: '20.x'
- name: Setup pnpm
uses: pnpm/action-setup@v2
with:
version: latest
run_install: false
- name: Get pnpm store directory
id: pnpm-cache
shell: bash
run: |
echo "STORE_PATH=$(pnpm store path)" >> $GITHUB_OUTPUT
- name: Setup pnpm cache
uses: actions/cache@v3
with:
path: ${{ steps.pnpm-cache.outputs.STORE_PATH }}
key: ${{ runner.os }}-pnpm-store-${{ hashFiles('**/pnpm-lock.yaml') }}
restore-keys: |
${{ runner.os }}-pnpm-store-
- name: Install dependencies
run: yarn install
run: pnpm install
- name: Run tests
run: yarn test
run: pnpm test
- name: Run build
run: yarn build
run: pnpm build

0 comments on commit 2fe25b5

Please sign in to comment.