-
Notifications
You must be signed in to change notification settings - Fork 92
45 lines (42 loc) · 1.22 KB
/
Module.yml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
# Useful resource: https://github.com/actions/starter-workflows
name: Check Universal Module
on:
# https://help.github.com/en/articles/workflow-syntax-for-github-actions#onpushpull_requestpaths
# More helpful: https://help.github.com/en/articles/events-that-trigger-workflows#webhook-events
push:
branches:
# If this isn't defined then all PR tests will be run twice
- master
paths:
- '*'
- '!*.md'
pull_request:
paths:
- '*'
- '!*.md'
jobs:
test:
name: Check Universal Module
strategy:
matrix:
# Run tests with all of these node versions/systems :]
# node-version: [8.x, 10.x, 12.x]
node-version: [10.x]
# os: [ubuntu-latest, windows-latest, macOS-latest]
os: [ubuntu-latest]
runs-on: ${{ matrix.os }}
steps:
- uses: actions/checkout@v1
- name: Use Node.js ${{ matrix.node-version }}
uses: actions/setup-node@v1
with:
node-version: ${{ matrix.node-version }}
- name: Install Node Dependencies
run: |
npm install
env:
CI: true
- name: Check Package
run: ./scripts/module-scripts-check-package.sh
env:
CI: true