Files
rbxts-transformer-instances/.github/workflows/node.js.yml
T
Azur 64511ddfdc
Node.js CI / build (18.x) (push) Failing after 28s
Node.js CI / build (20.x) (push) Failing after 25s
Node.js CI / build (22.x) (push) Failing after 18s
Add pnpm to workflows
2026-06-24 15:12:26 +02:00

37 lines
998 B
YAML

# This workflow will do a clean installation of node dependencies, cache/restore them, build the source code and run tests across different versions of node
# For more information see: https://docs.github.com/en/actions/automating-builds-and-tests/building-and-testing-nodejs
name: Node.js CI
on:
push:
branches: [ "master" ]
pull_request:
branches: [ "master" ]
jobs:
build:
runs-on: ubuntu-latest
strategy:
matrix:
node-version: [18.x, 20.x, 22.x]
# See supported Node.js release schedule at https://nodejs.org/en/about/releases/
steps:
- uses: actions/checkout@v4
- name: Use Node.js ${{ matrix.node-version }}
uses: actions/setup-node@v4
with:
node-version: ${{ matrix.node-version }}
package-manager-cache: false
- name: Setup pnpm
uses: pnpm/action-setup@v6
with:
cache: true
run_install: true
- run: npm ci
- run: npm run build --if-present
- run: npm test