update tooling

This commit is contained in:
Jan T. Sott 2024-09-20 23:41:53 +02:00
parent aae8ce8428
commit 7c3be2621c
4 changed files with 92 additions and 51 deletions

59
.github/workflows/node.yml vendored Normal file
View file

@ -0,0 +1,59 @@
name: 'Run tests on NodeJS'
on:
push:
paths:
- '.github/workflows/node.yml'
- '1.0/*'
- '2.0/*'
- '2.5/*'
- '3.0/*'
- '4.0/*'
- 'package.json'
- 'pnpm-lock.yaml'
pull_request:
paths:
- '.github/workflows/node.yml'
- '1.0/*'
- '2.0/*'
- '2.5/*'
- '3.0/*'
- '4.0/*'
- 'package.json'
- 'pnpm-lock.yaml'
workflow_dispatch:
jobs:
default:
runs-on: ubuntu-latest
strategy:
fail-fast: false
matrix:
node-version: ['*', 'lts/*']
steps:
- uses: actions/checkout@v3
with:
fetch-depth: 4
- uses: actions/setup-node@v3
with:
node-version: ${{ matrix.node-version }}
- name: Cache pnpm modules
uses: actions/cache@v2
with:
path: ~/.pnpm-store
key: ${{ runner.os }}-${{ hashFiles('**/pnpm-lock.yaml') }}
restore-keys: |
${{ runner.os }}-
- uses: pnpm/action-setup@v2
with:
version: 6
run_install: |
- recursive: true
- args: [--frozen-lockfile, --strict-peer-dependencies]
- name: Run Tests
run: pnpm run test --if-present