Skip to content

Commit

Permalink
ci: add GitHub Actions
Browse files Browse the repository at this point in the history
  • Loading branch information
akameco committed Mar 24, 2020
1 parent 3cd9d1a commit d31c1ad
Show file tree
Hide file tree
Showing 2 changed files with 20 additions and 1 deletion.
19 changes: 19 additions & 0 deletions .github/workflows/test.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,19 @@
name: test

on: [push]

jobs:
build:
runs-on: ubuntu-latest
strategy:
matrix:
node-version: [10.x, 12.x]
steps:
- uses: actions/checkout@v2
- name: Setup node
uses: actions/setup-node@v1
with:
node-version: ${{ matrix.node }}
- run: yarn install
- run: yarn lint
- run: yarn test
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,7 @@
"prepublish": "npm run build",
"build": "tsc",
"lint": "eslint src/**/*.ts --fix --cache",
"test": "npm run lint && jest"
"test": "jest"
},
"bin": {
"extract-react-intl-messages": "cli.js",
Expand Down

0 comments on commit d31c1ad

Please sign in to comment.