Skip to content

Commit 2ca207f

Browse files
committed
actions: Move tests to Github Actions
This commit is to move tests from travis CI to Github Actions.
1 parent a038d99 commit 2ca207f

File tree

1 file changed

+28
-0
lines changed

1 file changed

+28
-0
lines changed

.github/workflows/tests.yml

Lines changed: 28 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,28 @@
1+
name: tests
2+
on: [pull_request]
3+
jobs:
4+
build:
5+
runs-on: ubuntu-latest
6+
strategy:
7+
matrix:
8+
node-version: [8.x, 10.x, 12.x, 14.x, 15.x]
9+
steps:
10+
- uses: actions/checkout@v2
11+
- name: Setup with Node.js ${{ matrix.node-version }}
12+
uses: actions/setup-node@v1
13+
with:
14+
node-version: ${{ matrix.node-version }}
15+
- name: Cache Node.js modules
16+
uses: actions/cache@v2
17+
with:
18+
path: ~/.npm
19+
key: ${{ runner.OS }}-node-${{ hashFiles('**/package-lock.json') }}
20+
restore-keys: |
21+
${{ runner.OS }}-node-
22+
${{ runner.OS }}-
23+
- name: Install dependencies
24+
run: npm install grunt-cli
25+
- name: "Build dist files"
26+
run: grunt build
27+
- name: "Run tests"
28+
run: npm test

0 commit comments

Comments
 (0)