Skip to content

Commit 2f99d56

Browse files
committed
Use Github Actions
1 parent becfd26 commit 2f99d56

File tree

4 files changed

+3355
-16
lines changed

4 files changed

+3355
-16
lines changed

.github/workflows/main_ci.yml

Lines changed: 60 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,60 @@
1+
name: Run Tests
2+
3+
on:
4+
push:
5+
branches:
6+
- master
7+
pull_request:
8+
9+
permissions:
10+
contents: read
11+
12+
jobs:
13+
unit:
14+
runs-on: ubuntu-latest
15+
strategy:
16+
matrix:
17+
node-version: [14, 'lts/*']
18+
# See supported Node.js release schedule at https://nodejs.org/en/about/releases/
19+
steps:
20+
- uses: actions/checkout@ec3a7ce113134d7a93b817d10a8272cb61118579 # v2
21+
- name: Use Node.js ${{ matrix.node-version }}
22+
uses: actions/setup-node@eeb10cff27034e7acf239c5d29f62154018672fd # v3
23+
with:
24+
node-version: ${{ matrix.node-version }}
25+
registry-url: https://registry.npmjs.org/
26+
cache: 'npm'
27+
- run: npm i
28+
- run: npm run unit
29+
coverage:
30+
runs-on: ubuntu-latest
31+
strategy:
32+
matrix:
33+
node-version: [14, 'lts/*']
34+
# See supported Node.js release schedule at https://nodejs.org/en/about/releases/
35+
steps:
36+
- uses: actions/checkout@ec3a7ce113134d7a93b817d10a8272cb61118579 # v2
37+
- name: Use Node.js ${{ matrix.node-version }}
38+
uses: actions/setup-node@eeb10cff27034e7acf239c5d29f62154018672fd # v3
39+
with:
40+
node-version: ${{ matrix.node-version }}
41+
registry-url: https://registry.npmjs.org/
42+
cache: 'npm'
43+
- run: npm i
44+
- run: npm run coverage
45+
lint:
46+
runs-on: ubuntu-latest
47+
strategy:
48+
matrix:
49+
node-version: [14, 'lts/*']
50+
# See supported Node.js release schedule at https://nodejs.org/en/about/releases/
51+
steps:
52+
- uses: actions/checkout@ec3a7ce113134d7a93b817d10a8272cb61118579 # v2
53+
- name: Use Node.js ${{ matrix.node-version }}
54+
uses: actions/setup-node@eeb10cff27034e7acf239c5d29f62154018672fd # v3
55+
with:
56+
node-version: ${{ matrix.node-version }}
57+
registry-url: https://registry.npmjs.org/
58+
cache: 'npm'
59+
- run: npm i
60+
- run: npm run standard

.travis.yml

Lines changed: 0 additions & 15 deletions
This file was deleted.

0 commit comments

Comments
 (0)