Skip to content

fix action

fix action #1

Workflow file for this run

name: Test
on:
push:
branches:
- 'master'
paths:
- 'packages/**'
- '.github/**'
pull_request:
branches:
- 'master'
paths:
- 'packages/**'
- '.github/**'
jobs:
test:
name: Ubuntu on Node ${{ matrix.node }}
runs-on: ubuntu-latest
strategy:
matrix:
os: [ubuntu-latest]
node: [20]
steps:
- uses: actions/checkout@v2
- uses: actions/setup-node@v3
with:
node-version: ${{ matrix.node }}
- uses: pnpm/action-setup@v2
name: Install pnpm
with:
version: 8
run_install: false
- name: Get pnpm store directory
shell: bash
run: |
echo "STORE_PATH=$(pnpm store path --silent)" >> $GITHUB_ENV
- uses: actions/cache@v3
name: Setup pnpm cache
with:
path: ${{ env.STORE_PATH }}
key: ${{ runner.os }}-pnpm-store-${{ hashFiles('**/pnpm-lock.yaml') }}
restore-keys: |
${{ runner.os }}-pnpm-store-
- name: Install dependencies
run: pnpm -r install
- run: pnpm run check