Skip to content

ci(github-actions): update pnpm/action-setup action to v5 #294

ci(github-actions): update pnpm/action-setup action to v5

ci(github-actions): update pnpm/action-setup action to v5 #294

Workflow file for this run

name: Test
on:
push:
branches: [develop]
pull_request:
branches: [master, develop, next]
jobs:
test:
name: Test
strategy:
matrix:
os: [ubuntu-latest, windows-latest]
runs-on: ${{ matrix.os }}
timeout-minutes: 10
steps:
- name: Checkout
uses: actions/checkout@de0fac2e4500dabe0009e67214ff5f5447ce83dd # v6
- name: Use Node.js
uses: actions/setup-node@53b83947a5a98c8d113130e565377fae1a50d02f # v6
with:
node-version-file: .nvmrc
- name: Setup pnpm
uses: pnpm/action-setup@fc06bc1257f339d1d5d8b3a19a8cae5388b55320 # v5
with:
run_install: true
- name: Lint
if: ${{ matrix.os == 'ubuntu-latest' }}
run: pnpm lint
- name: Type check
if: ${{ matrix.os == 'ubuntu-latest' }}
run: pnpm type-check
- name: Build
run: pnpm build
- name: Test TypeScript 4
run: node --import alias-imports --conditions typescript4 tests/index.ts
- name: Test TypeScript 5
run: node --import alias-imports --conditions typescript5 tests/index.ts
- name: Test TypeScript 6
run: node --import alias-imports --conditions typescript6 tests/index.ts