Skip to content

Commit 7d4b596

Browse files
authored
Migrate to github actions (#122)
1 parent 1bd0aaf commit 7d4b596

File tree

3 files changed

+65
-46
lines changed

3 files changed

+65
-46
lines changed

.circleci/config.yml

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

.github/workflows/lint.yml

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

.github/workflows/test.yml

Lines changed: 35 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,35 @@
1+
name: Test
2+
on:
3+
push:
4+
branches:
5+
- master
6+
- develop
7+
pull_request:
8+
jobs:
9+
test:
10+
runs-on: ${{ matrix.os }}
11+
strategy:
12+
matrix:
13+
os: [ubuntu-latest]
14+
node-version: [10.x, 12.x, 14.x]
15+
steps:
16+
- uses: actions/checkout@v2
17+
- name: Setup node ${{ matrix.node-version }} in ${{ runner.OS }}
18+
uses: actions/setup-node@v1
19+
with:
20+
node-version: ${{ matrix.node-version }}
21+
- name: Cache Node.js modules
22+
uses: actions/cache@v2
23+
with:
24+
path: ~/.npm
25+
key: ${{ runner.OS }}-${{ matrix.node-version }}-node-${{ hashFiles('**/package-lock.json') }}
26+
restore-keys: |
27+
${{ runner.OS }}-${{ matrix.node-version }}-node-
28+
${{ runner.OS }}-${{ matrix.node-version }}-
29+
${{ runner.OS }}-
30+
- name: Install node modules
31+
run: |
32+
npm install
33+
npm run lerna-bootstrap
34+
- run: npm run test:ci
35+
- run: npm run test:coverage

0 commit comments

Comments
 (0)