Skip to content

Commit 3705145

Browse files
authored
move from travis to github actions (#487)
1 parent a8e20f3 commit 3705145

File tree

3 files changed

+28
-21
lines changed

3 files changed

+28
-21
lines changed

.github/workflows/ci.yml

Lines changed: 26 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,26 @@
1+
name: CI
2+
3+
on:
4+
push:
5+
branches: [ master ]
6+
pull_request:
7+
branches: [ master ]
8+
9+
jobs:
10+
build:
11+
12+
runs-on: ubuntu-latest
13+
14+
strategy:
15+
matrix:
16+
node-version: [10.x, 12.x, 14.x]
17+
18+
steps:
19+
- uses: actions/checkout@v2
20+
- uses: actions/setup-node@v3
21+
with:
22+
node-version: ${{ matrix.node-version }}
23+
cache: yarn
24+
- run: yarn install --frozen-lockfile
25+
- run: yarn lint:js
26+
- run: yarn test

.travis.yml

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

package.json

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -31,7 +31,8 @@
3131
],
3232
"scripts": {
3333
"release": "release-it",
34-
"test": "eslint . && codemod-cli test && node ./test/run-test.js",
34+
"lint:js": "eslint .",
35+
"test": "codemod-cli test && node ./test/run-test.js",
3536
"update-docs": "codemod-cli update-docs"
3637
},
3738
"dependencies": {

0 commit comments

Comments
 (0)