Skip to content

Commit

Permalink
Add pnpm config to github workflow runner
Browse files Browse the repository at this point in the history
  • Loading branch information
nichochar committed Jul 10, 2024
1 parent cb22d30 commit 9d69236
Showing 1 changed file with 18 additions and 7 deletions.
25 changes: 18 additions & 7 deletions .github/workflows/run-tests.yml
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
# For now we only run against node 22.x, but can easily add more node versions should we decide to support them.
# For more information see: https://docs.github.com/en/actions/automating-builds-and-tests/building-and-testing-nodejs

name: Node.js CI
name: Node.js + pnpm CI

on:
push:
Expand All @@ -20,15 +20,26 @@ jobs:
node-version: [22.x]

steps:
- name: Checkout
- uses: actions/checkout@v4

- uses: pnpm/action-setup@v4
name: Install pnpm
with:
version: 8
run_install: true

- name: Use Node.js ${{ matrix.node-version }}
uses: actions/setup-node@v3
with:
node-version: ${{ matrix.node-version }}
cache: 'npm'
- name: Install frontend dependencies
run: npm ci
- name: Lint frontend
run: npm run check-prettier
cache: 'pnpm'

- name: Lint
run: pnpm run check-prettier

- name: Check that the application can successfully build
run: npm run build
run: pnpm run build

- name: Test
run: pnpm --filter api test

0 comments on commit 9d69236

Please sign in to comment.