Skip to content

Commit

Permalink
update pipeline
Browse files Browse the repository at this point in the history
  • Loading branch information
idleberg committed Sep 20, 2024
1 parent 7c3be26 commit 6d690c0
Showing 1 changed file with 21 additions and 16 deletions.
37 changes: 21 additions & 16 deletions .github/workflows/node.yml
Original file line number Diff line number Diff line change
Expand Up @@ -27,33 +27,38 @@ jobs:
default:
runs-on: ubuntu-latest
strategy:
fail-fast: false
matrix:
node-version: ['*', 'lts/*']
node-version: ['lts/*', '*']

steps:
- uses: actions/checkout@v3
- uses: actions/checkout@b4ffde65f46336ab88eb53be808477a3936bae11 # v4.1.1
with:
fetch-depth: 4
fetch-depth: 10

- uses: actions/setup-node@v3
- uses: actions/setup-node@b39b52d1213e96004bfcb1c61a8a6fa8ab84f3e8 # v4.0.1
with:
node-version: ${{ matrix.node-version }}

- name: Cache pnpm modules
uses: actions/cache@v2
- name: Enable Corepack
run: corepack enable

- name: Get pnpm store directory
id: pnpm-cache
run: |
echo "::set-output name=pnpm_store_path::$(pnpm store path)"
- uses: actions/cache@13aacd865c20de90d75de3b17ebe84f7a17d57d2 # v4.0.0
name: Set up pnpm cache
with:
path: ~/.pnpm-store
key: ${{ runner.os }}-${{ hashFiles('**/pnpm-lock.yaml') }}
path: ${{ steps.pnpm-cache.outputs.pnpm_store_path }}
key: ${{ runner.os }}-pnpm-store-${{ hashFiles('**/pnpm-lock.yaml') }}
restore-keys: |
${{ runner.os }}-
${{ runner.os }}-pnpm-store-
- uses: pnpm/action-setup@v2
with:
version: 6
run_install: |
- recursive: true
- args: [--frozen-lockfile, --strict-peer-dependencies]
- name: Install dependencies
run: |
pnpm install --frozen-lockfile --strict-peer-dependencies
pnpm install ${{ matrix.vite-version }}
- name: Run Tests
run: pnpm run test --if-present

0 comments on commit 6d690c0

Please sign in to comment.