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