Skip to content

Commit

Permalink
chore: creates github CI/CD action
Browse files Browse the repository at this point in the history
  • Loading branch information
DiederikvandenB committed Feb 22, 2020
1 parent 3f41370 commit 9a49e22
Show file tree
Hide file tree
Showing 2 changed files with 29 additions and 1 deletion.
26 changes: 26 additions & 0 deletions .github/workflows/test.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,26 @@
name: Test
on: ["push", "pull_request"]

jobs:
build:
name: Test with coverage
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v1

- name: Setup NodeJS
uses: actions/setup-node@v1
with:
node-version: 10.x

- name: Install dependencies
run: yarn install

- name: Run tests
run: yarn test:coverage

- name: Publish coverage
uses: coverallsapp/github-action@master
with:
github-token: ${{ secrets.GITHUB_TOKEN }}
path-to-lcov: './tests/coverage/lcov.info'
4 changes: 3 additions & 1 deletion package.json
Original file line number Diff line number Diff line change
Expand Up @@ -10,9 +10,11 @@
"error reporting"
],
"scripts": {
"build": "tsc",
"watch": "tsc-watch -p ./tsconfig.json",
"release": "standard-version",
"test": "jest"
"test": "jest",
"test:coverage": "jest --coverage --watchAll=false"
},
"dependencies": {
"@sentry/browser": "^5.12.1",
Expand Down

0 comments on commit 9a49e22

Please sign in to comment.