Skip to content

Commit 79c71f1

Browse files
committed
Add GH Actions CI.
1 parent 589ff53 commit 79c71f1

File tree

2 files changed

+67
-0
lines changed

2 files changed

+67
-0
lines changed

.github/workflows/ci.yml

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

package.json

+1
Original file line numberDiff line numberDiff line change
@@ -29,6 +29,7 @@
2929
"test": "tests"
3030
},
3131
"scripts": {
32+
"lint": "eslint .",
3233
"lint:js": "eslint .",
3334
"release": "release-it",
3435
"test": "qunit tests/**/*-test.js"

0 commit comments

Comments
 (0)