Skip to content

Commit b6bd908

Browse files
committed
ci: run on GitHub Actions
1 parent 6c54910 commit b6bd908

File tree

3 files changed

+28
-9
lines changed

3 files changed

+28
-9
lines changed

.github/workflows/ci.yml

+27
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,27 @@
1+
name: CI
2+
on:
3+
push:
4+
pull_request:
5+
release:
6+
types:
7+
- created
8+
jobs:
9+
build:
10+
runs-on: ubuntu-latest
11+
strategy:
12+
matrix:
13+
node-version:
14+
- 10.x
15+
- 12.x
16+
- 14.x
17+
steps:
18+
- name: Checkout
19+
uses: actions/checkout@v2
20+
- name: Set up Node.js ${{ matrix.node-version }}
21+
uses: actions/setup-node@v1
22+
with:
23+
node-version: ${{ matrix.node-version }}
24+
- run: yarn install --frozen-lockfile
25+
- run: yarn lint
26+
- run: yarn test
27+
- run: yarn build

.travis.yml

-7
This file was deleted.

package.json

+1-2
Original file line numberDiff line numberDiff line change
@@ -18,8 +18,7 @@
1818
"test": "jest",
1919
"build": "rollup -c",
2020
"clean": "rimraf dist",
21-
"prepublishOnly": "run-s clean lint test build",
22-
"ci": "run-s lint test build"
21+
"prepublishOnly": "run-s clean lint test build"
2322
},
2423
"devDependencies": {
2524
"@susisu/eslint-config": "^0.0.28",

0 commit comments

Comments
 (0)