Skip to content

Commit

Permalink
update node CI to use pnpm
Browse files Browse the repository at this point in the history
  • Loading branch information
NickAkhmetov committed Oct 20, 2023
1 parent 04bfc3e commit 5222a99
Show file tree
Hide file tree
Showing 2 changed files with 10 additions and 9 deletions.
15 changes: 8 additions & 7 deletions .github/workflows/node-ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -12,21 +12,22 @@ jobs:
runs-on: ubuntu-20.04

steps:
- uses: actions/checkout@v2
- uses: actions/checkout@v3
with:
submodules: "recursive"

- uses: pnpm/action-setup@v2
with:
version: 8.8.0
- name: Set up Node
uses: actions/setup-node@v3
with:
node-version-file: ".nvmrc"
cache: "npm"
cache-dependency-path: context/package-lock.json

- run: npm --version
cache: "pnpm"
cache-dependency-path: context/pnpm-lock.yaml
- run: pnpm --version

- name: Install node dependencies
run: npm ci --prefix context
run: pnpm i --frozen-lockfile --dir context

- name: Run test script
run: etc/test/test-node.sh
4 changes: 2 additions & 2 deletions etc/test/test-node.sh
Original file line number Diff line number Diff line change
Expand Up @@ -6,10 +6,10 @@ set -o errexit
cd context

start lint
npm run lint
pnpm run lint
end lint

start npm-test
npm run test
pnpm run test
end npm-test

0 comments on commit 5222a99

Please sign in to comment.