mirror of
https://github.com/idrawjs/idraw
synced 2026-05-22 17:18:24 +00:00
32 lines
993 B
YAML
32 lines
993 B
YAML
# This workflow will do a clean install of node dependencies, build the source code and run tests across different versions of node
|
|
# For more information see: https://help.github.com/actions/language-and-framework-guides/using-nodejs-with-github-actions
|
|
|
|
name: Node.js CI
|
|
|
|
on:
|
|
push:
|
|
branches: [main]
|
|
pull_request:
|
|
branches: [main]
|
|
|
|
jobs:
|
|
build:
|
|
runs-on: ubuntu-latest
|
|
if: github.repository == 'idrawjs/idraw'
|
|
strategy:
|
|
matrix:
|
|
node-version: [24.x]
|
|
# See supported Node.js release schedule at https://nodejs.org/en/about/releases/
|
|
|
|
steps:
|
|
- uses: actions/checkout@v5
|
|
- name: Use Node.js ${{ matrix.node-version }}
|
|
uses: actions/setup-node@v5
|
|
with:
|
|
node-version: ${{ matrix.node-version }}
|
|
- run: npm config set registry https://registry.yarnpkg.com/
|
|
# - run: npm install
|
|
- run: npm install --global pnpm@10
|
|
- run: pnpm i
|
|
- run: npm run beforetest
|
|
- run: npm run test
|