Skip to content

Commit

Permalink
Update CI to use pnpm
Browse files Browse the repository at this point in the history
  • Loading branch information
edsadr authored Apr 19, 2024
1 parent 95ee249 commit 6c51ee9
Showing 1 changed file with 12 additions and 18 deletions.
30 changes: 12 additions & 18 deletions .github/workflows/node.js.yml
Original file line number Diff line number Diff line change
@@ -1,29 +1,23 @@
# This workflow will do a clean installation of node dependencies, cache/restore them, build the source code and run tests across different versions of node
# For more information see: https://docs.github.com/en/actions/automating-builds-and-tests/building-and-testing-nodejs

name: Node.js CI

name: CI Workflow
on:
push:
branches: [ "main" ]
pull_request:
branches: [ "main" ]

jobs:
CI:

runs-on: ubuntu-latest

build:
runs-on: ubuntu-22.04
strategy:
matrix:
node-version: [20.x]
# See supported Node.js release schedule at https://nodejs.org/en/about/releases/

node-version: [20]
steps:
- uses: actions/checkout@v3
- uses: pnpm/action-setup@v3
with:
version: 9
- name: Use Node.js ${{ matrix.node-version }}
uses: actions/setup-node@v3
with:
node-version: ${{ matrix.node-version }}
cache: 'npm'
- run: npm test
cache: 'pnpm'
- name: Install dependencies
run: pnpm install
- name: Run tests
run: pnpm run test

0 comments on commit 6c51ee9

Please sign in to comment.