40 lines
659 B
YAML
40 lines
659 B
YAML
name: Validate
|
|
|
|
on:
|
|
push:
|
|
branches:
|
|
- master
|
|
pull_request:
|
|
branches:
|
|
- master
|
|
|
|
jobs:
|
|
Validate:
|
|
strategy:
|
|
matrix:
|
|
os: [ubuntu-16.04, windows-latest, macos-10.15]
|
|
|
|
runs-on: ${{ matrix.os }}
|
|
|
|
steps:
|
|
|
|
- name: Fetch Repository
|
|
uses: actions/checkout@v2
|
|
|
|
- name: Install Node.js
|
|
uses: actions/setup-node@v1
|
|
with:
|
|
node-version: 14.16.0
|
|
|
|
- name: Install Modules
|
|
run: npm ci
|
|
|
|
- name: Build Sample Addon
|
|
run: npm run test-build
|
|
|
|
- name: Run Lint
|
|
run: npm run eslint
|
|
|
|
- name: Run Unit Tests
|
|
run: npm run test-ci
|