Skip to content

ci: 添加 Github Action #17

ci: 添加 Github Action

ci: 添加 Github Action #17

Workflow file for this run

name: CI
on:
push:
branches: ["master", "dev", "releases/**"]
pull_request:
branches: ["master"]
jobs:
build:
strategy:
matrix:
os: [windows-latest, ubuntu-latest, macos-latest]
node-version: [16.x, 18.x, 20.x, latest]
runs-on: ${{ matrix.os }}
steps:
- uses: actions/checkout@v4
- name: Use Node.js ${{ matrix.node-version }}
uses: actions/setup-node@v3
with:
node-version: ${{ matrix.node-version }}
cache: 'npm'
- run: npm ci
- run: npm run lint
- run: npm run build
- run: npm run test