Skip to content

Commit d31c1ad

Browse files
committed
ci: add GitHub Actions
1 parent 3cd9d1a commit d31c1ad

File tree

2 files changed

+20
-1
lines changed

2 files changed

+20
-1
lines changed

.github/workflows/test.yml

Lines changed: 19 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,19 @@
1+
name: test
2+
3+
on: [push]
4+
5+
jobs:
6+
build:
7+
runs-on: ubuntu-latest
8+
strategy:
9+
matrix:
10+
node-version: [10.x, 12.x]
11+
steps:
12+
- uses: actions/checkout@v2
13+
- name: Setup node
14+
uses: actions/setup-node@v1
15+
with:
16+
node-version: ${{ matrix.node }}
17+
- run: yarn install
18+
- run: yarn lint
19+
- run: yarn test

package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -19,7 +19,7 @@
1919
"prepublish": "npm run build",
2020
"build": "tsc",
2121
"lint": "eslint src/**/*.ts --fix --cache",
22-
"test": "npm run lint && jest"
22+
"test": "jest"
2323
},
2424
"bin": {
2525
"extract-react-intl-messages": "cli.js",

0 commit comments

Comments
 (0)