Skip to content

Commit

Permalink
ci: swap steps
Browse files Browse the repository at this point in the history
  • Loading branch information
big-kahuna-burger committed Oct 23, 2024
1 parent 9bfdfd7 commit 902ac51
Showing 1 changed file with 10 additions and 15 deletions.
25 changes: 10 additions & 15 deletions .github/workflows/node.js.yml
Original file line number Diff line number Diff line change
Expand Up @@ -13,25 +13,22 @@ jobs:
build:
environment: TEST
runs-on: ubuntu-latest

strategy:
matrix:
node-version: [18.x, 20.x, 22.x]

steps:
- uses: actions/checkout@v4
- name: Checkout
uses: actions/checkout@v4
- name: Install pnpm
uses: pnpm/[email protected]
with:
version: 9
run_install: false
- name: Setup ${{ matrix.node-version }}
uses: actions/setup-node@v4
with:
node-version: ${{ matrix.node-version }}
cache: 'npm'

- uses: pnpm/[email protected]
name: Install pnpm
with:
version: 8
run_install: false

cache: 'pnpm'
- name: Get pnpm store directory
shell: bash
run: |
Expand All @@ -43,12 +40,10 @@ jobs:
key: ${{ runner.os }}-pnpm-store-${{ hashFiles('**/pnpm-lock.yaml') }}
restore-keys: |
${{ runner.os }}-pnpm-store-
- name: Install dependencies
run: pnpm install

- run: pnpm run build

- name: Build
run: pnpm run build
- name: Test ${{ matrix.node-version }}
run: pnpm test
env:
Expand Down

0 comments on commit 902ac51

Please sign in to comment.