Skip to content

Commit 72937c1

Browse files
committed
Add GitHub Actions workflow for testing
1 parent 421b0ae commit 72937c1

File tree

1 file changed

+29
-0
lines changed

1 file changed

+29
-0
lines changed

Diff for: .github/workflows/ci.yml

+29
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,29 @@
1+
name: Test
2+
3+
on:
4+
push:
5+
branches: [ master ]
6+
pull_request:
7+
branches: [ master ]
8+
9+
jobs:
10+
build:
11+
12+
runs-on: ubuntu-latest
13+
14+
strategy:
15+
matrix:
16+
node-version: [10.x]
17+
18+
steps:
19+
- uses: actions/checkout@v2
20+
- name: Use Node.js ${{ matrix.node-version }}
21+
uses: actions/setup-node@v2
22+
with:
23+
node-version: ${{ matrix.node-version }}
24+
- name: Install NPM v5
25+
run: if [[ `npm -v ` != 5* ]]; then npm i -g npm@5; fi
26+
- name: Install Dependencies
27+
run: npm install
28+
- name: Test
29+
run: grunt test

0 commit comments

Comments
 (0)