Template
1
0
mirror of https://github.com/actions/setup-node synced 2024-11-30 21:22:29 +08:00
setup-node/.github/workflows/build-test.yml

30 lines
567 B
YAML
Raw Normal View History

name: build-test
on:
pull_request:
paths-ignore:
- '**.md'
push:
branches:
2020-07-22 20:12:24 +08:00
- main
- releases/*
paths-ignore:
- '**.md'
jobs:
build:
runs-on: ${{ matrix.os }}
strategy:
matrix:
os: [ubuntu-latest, windows-latest, macos-latest]
steps:
- uses: actions/checkout@v2
2022-02-11 05:11:10 +08:00
- name: Setup node 16
2020-12-15 18:38:55 +08:00
uses: actions/setup-node@v2
with:
2022-02-11 05:11:10 +08:00
node-version: 16.x
cache: npm
- run: npm ci
- run: npm run build
- run: npm run format-check
- run: npm test