Skip to content
This repository was archived by the owner on Nov 8, 2024. It is now read-only.

Commit 3e9d79e

Browse files
committed
chore(project): move to GitHub Actions
1 parent b4a81b1 commit 3e9d79e

File tree

5 files changed

+57
-66
lines changed

5 files changed

+57
-66
lines changed

.circleci/config.yml

-64
This file was deleted.

.github/workflows/lint.yaml

+14
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,14 @@
1+
on: push
2+
jobs:
3+
lint:
4+
runs-on: ubuntu-latest
5+
steps:
6+
- uses: actions/checkout@v2
7+
with:
8+
fetch-depth: 0
9+
- uses: actions/setup-node@v2-beta
10+
with:
11+
node-version: 12
12+
- run: yarn install --frozen-lockfile --ignore-optional
13+
- run: yarn run lint
14+
- run: yarn run commitlint --from origin/master

.github/workflows/test.yaml

+42
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,42 @@
1+
on:
2+
push:
3+
paths-ignore:
4+
- 'docs/**'
5+
- 'README.md'
6+
jobs:
7+
test:
8+
runs-on: ubuntu-latest
9+
strategy:
10+
matrix:
11+
node: [8, 10, 12]
12+
steps:
13+
- uses: actions/checkout@v2
14+
- uses: actions/setup-node@v2-beta
15+
with:
16+
node-version: ${{ matrix.node }}
17+
- run: yarn install --frozen-lockfile --ignore-optional
18+
- run: yarn test:cover
19+
- run: |
20+
mkdir coverage
21+
yarn run nyc report --reporter=text-lcov > coverage/lcov.info
22+
- uses: coverallsapp/github-action@master
23+
with:
24+
github-token: ${{ secrets.github_token }}
25+
flag-name: node-${{ matrix.node }}
26+
parallel: true
27+
28+
smoke-test:
29+
runs-on: ubuntu-latest
30+
steps:
31+
- uses: actions/checkout@v2
32+
- run: yarn install --frozen-lockfile --ignore-optional
33+
- run: ./scripts/smoke.sh
34+
35+
coverage:
36+
needs: [test]
37+
runs-on: ubuntu-latest
38+
steps:
39+
- uses: coverallsapp/github-action@master
40+
with:
41+
github-token: ${{ secrets.github_token }}
42+
parallel-finished: true

package.json

+1-2
Original file line numberDiff line numberDiff line change
@@ -11,8 +11,7 @@
1111
"lint": "lerna exec --concurrency 1 --no-bail -- npm run lint",
1212
"lint:fix": "lerna exec --concurrency 1 --no-bail -- npm run lint:fix",
1313
"test": "lerna exec --concurrency 1 --no-bail -- npm run test",
14-
"cover": "nyc npm test",
15-
"coveralls": "nyc report --reporter=text-lcov | coveralls"
14+
"test:cover": "nyc npm test"
1615
},
1716
"devDependencies": {
1817
"@commitlint/cli": "8.3.5",
File renamed without changes.

0 commit comments

Comments
 (0)