Skip to content

Commit

Permalink
ci: use common JS setup action (#4)
Browse files Browse the repository at this point in the history
  • Loading branch information
mcous authored Oct 8, 2023
1 parent 7f71f5d commit 4b42e3d
Showing 1 changed file with 4 additions and 24 deletions.
28 changes: 4 additions & 24 deletions .github/workflows/ci.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -22,19 +22,10 @@ jobs:
- name: Checkout source
uses: actions/checkout@v3

- name: Install pnpm
uses: pnpm/action-setup@c3b53f6a16e57305370b4ae5a540c2077a1d50dd
with:
run_install: true

- name: Install Node.js ${{ matrix.node-version }}
uses: actions/setup-node@v3
- name: Install Node.js and dependencies
uses: mcous/js/actions/setup@main
with:
node-version: ${{ matrix.node-version }}
cache: pnpm

- name: Install dependencies
run: pnpm install

- name: Run tests
run: pnpm coverage
Expand Down Expand Up @@ -63,19 +54,8 @@ jobs:
- name: Checkout source
uses: actions/checkout@v3

- name: Install pnpm
uses: pnpm/action-setup@c3b53f6a16e57305370b4ae5a540c2077a1d50dd
with:
run_install: true

- name: Install Node.js
uses: actions/setup-node@v3
with:
node-version: '18'
cache: pnpm

- name: Install dependencies
run: pnpm install
- name: Install Node.js and dependencies
uses: mcous/js/actions/setup@main

- name: Build and check
run: pnpm build-and-check
Expand Down

0 comments on commit 4b42e3d

Please sign in to comment.