Skip to content

Commit

Permalink
ci: update workflow to use pnpm
Browse files Browse the repository at this point in the history
  • Loading branch information
damienbutt committed Dec 28, 2024
1 parent 159271c commit 3f9c7f1
Showing 1 changed file with 22 additions and 12 deletions.
34 changes: 22 additions & 12 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -2,27 +2,37 @@ name: CI

on:
push:
branches:
- master
branches: [master]

pull_request:
branches:
- master
branches: [master]

workflow_dispatch:

jobs:
test:
runs-on: ubuntu-latest

steps:
- name: Checkout code
uses: actions/checkout@v2
- name: Checkout
uses: actions/checkout@v4
with:
fetch-depth: 0
persist-credentials: false

- name: Setup pnpm
uses: pnpm/action-setup@v4
with:
version: 9

- name: Set up Node.js
uses: actions/setup-node@v2
- name: Setup Node.js
uses: actions/setup-node@v4
with:
node-version: "14"
node-version-file: ".nvmrc"
cache: pnpm

- name: Install dependencies
run: npm install
- name: Install
run: pnpm install --frozen-lockfile

- name: Run tests
run: npm test
run: pnpm test

0 comments on commit 3f9c7f1

Please sign in to comment.