3
0
Fork 0
mirror of https://gitea.com/actions/setup-node.git synced 2024-11-22 18:19:33 +01:00
setup-node/.github/workflows/build-test.yml

34 lines
713 B
YAML
Raw Normal View History

name: build-test
on:
pull_request:
paths-ignore:
- '**.md'
push:
branches:
2020-07-22 14:12:24 +02: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
- name: Setup node 12
2020-12-15 11:38:55 +01:00
uses: actions/setup-node@v2
with:
node-version: 12.x
- run: npm ci
- run: npm run build
- run: npm run format-check
- run: npm test
- run: git add .
- name: Verify no unstaged changes
if: runner.os != 'windows'
run: __tests__/verify-no-unstaged-changes.sh