You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
33 lines
902 B
33 lines
902 B
name: Node pnpm CI
|
|
|
|
on: [push, pull_request]
|
|
|
|
permissions:
|
|
contents: read
|
|
|
|
jobs:
|
|
build:
|
|
runs-on: ${{ matrix.os }}
|
|
strategy:
|
|
matrix:
|
|
node_version: [20, 16]
|
|
os: [ubuntu-latest, windows-latest, macOS-latest]
|
|
steps:
|
|
- uses: actions/checkout@v4
|
|
- name: Use Node.js ${{ matrix.node_version }}
|
|
uses: actions/setup-node@4
|
|
with:
|
|
node-version: ${{ matrix.node_version }}
|
|
- run: echo ${{github.ref}}
|
|
- run: curl -f https://get.pnpm.io/v6.16.js | node - add --global pnpm@7
|
|
- run: pnpm config set store-dir ~/.pnpm-store
|
|
- run: pnpm install --strict-peer-dependencies=false
|
|
- run: pnpm run lint
|
|
- run: pnpm run tsc
|
|
- run: pnpm run build
|
|
- run: pnpm run test
|
|
env:
|
|
CI: true
|
|
PROGRESS: none
|
|
NODE_ENV: test
|
|
NODE_OPTIONS: --max_old_space_size=4096
|
|
|