Skip to content

🏗️ esbuild & vitest #9

🏗️ esbuild & vitest

🏗️ esbuild & vitest #9

Workflow file for this run

name: Node.js CI
on:
push:
pull_request:
branches: [master,release]
jobs:
test:
runs-on: ubuntu-latest
name: test
strategy:
matrix:
node-version: [16.x, 18.x]
steps:
- name: checkout code repository
uses: actions/checkout@v2
with:
fetch-depth: 0
- name: Use Node.js ${{ matrix.node-version }}
uses: actions/setup-node@v1
with:
node-version: ${{ matrix.node-version }}
- uses: pnpm/action-setup@v2
name: Install pnpm
id: pnpm-install
with:
run_install: false
- name: Get pnpm store directory
id: pnpm-cache
shell: bash
run: |
echo "STORE_PATH=$(pnpm store path)" >> $GITHUB_OUTPUT
- uses: actions/cache@v3
name: Setup pnpm cache
with:
path: ${{ steps.pnpm-cache.outputs.STORE_PATH }}
key: ${{ runner.os }}-pnpm-store-${{ hashFiles('**/pnpm-lock.yaml') }}
restore-keys: |
${{ runner.os }}-pnpm-store-
- name: Install
run: |
pnpm install --frozen-lockfile=false
- name: Test
run: |
pnpm test