Skip to content

Fix CI: use actions/setup-node with Node LTS and corepack pnpm #5

Fix CI: use actions/setup-node with Node LTS and corepack pnpm

Fix CI: use actions/setup-node with Node LTS and corepack pnpm #5

Workflow file for this run

name: CI
permissions: {}
on:
workflow_dispatch:
pull_request:
types: [opened, synchronize]
push:
branches:
- main
concurrency:
group: ${{ github.workflow }}-${{ github.ref_name }}-${{ github.event.pull_request.number || github.sha }}
cancel-in-progress: ${{ github.ref_name != 'main' }}
jobs:
test:
name: Test
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@de0fac2e4500dabe0009e67214ff5f5447ce83dd # v6.0.2
- run: corepack enable
- uses: actions/setup-node@6044e13b5dc448c55e2357c09f80417699197238 # v6.2.0
with:
node-version: lts/*
cache: pnpm
- run: pnpm install --frozen-lockfile
- run: pnpm test
- run: pnpm --filter './example*' exec webpack