Skip to content

Commit 413427a

Browse files
Robert Jacksonmansona
authored andcommitted
Add GitHub Actions CI.
1 parent 894ad4f commit 413427a

File tree

1 file changed

+62
-0
lines changed

1 file changed

+62
-0
lines changed

.github/workflows/ci.yml

Lines changed: 62 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,62 @@
1+
name: CI
2+
3+
on:
4+
push:
5+
branches:
6+
- master
7+
- 'v*' # older version branches
8+
tags:
9+
- '*'
10+
11+
pull_request: {}
12+
schedule:
13+
- cron: '0 6 * * 0' # weekly, on sundays
14+
15+
jobs:
16+
lint:
17+
name: Lint
18+
runs-on: ubuntu-latest
19+
20+
steps:
21+
- uses: actions/checkout@v1
22+
- uses: actions/setup-node@v1
23+
with:
24+
node-version: '12.x'
25+
- name: install dependencies
26+
run: yarn install --frozen-lockfile --ignore-engines
27+
- name: lint
28+
run: yarn lint:js
29+
30+
test:
31+
name: "Node ${{ matrix.node }} - ${{ matrix.os }}"
32+
runs-on: "${{matrix.os}}-latest"
33+
34+
strategy:
35+
matrix:
36+
os: ['ubuntu', 'windows', 'macOS']
37+
node: ['6', '8', '10', '12', '14']
38+
39+
steps:
40+
- uses: actions/checkout@v1
41+
- uses: actions/setup-node@v1
42+
with:
43+
node-version: ${{ matrix.node }}
44+
- name: install dependencies
45+
run: yarn install --frozen-lockfile --ignore-engines
46+
- name: test
47+
run: yarn test
48+
49+
floating-test:
50+
name: Floating dependencies
51+
runs-on: ubuntu-latest
52+
53+
steps:
54+
- uses: actions/checkout@v1
55+
- uses: actions/setup-node@v1
56+
with:
57+
node-version: '12.x'
58+
- name: install dependencies
59+
run: yarn install --no-lockfile --ignore-engines
60+
- name: test
61+
run: yarn test
62+

0 commit comments

Comments
 (0)