Skip to content

Commit

Permalink
Add test coverage script
Browse files Browse the repository at this point in the history
  • Loading branch information
snatalenko committed Jan 25, 2021
1 parent d43d367 commit a175c3d
Show file tree
Hide file tree
Showing 2 changed files with 35 additions and 8 deletions.
8 changes: 0 additions & 8 deletions .github/workflows/build.yml
Expand Up @@ -32,11 +32,3 @@ jobs:

- name: NPM Build
run: npm run build

- name: NPM Test
run: npm run test:coverage

- name: Coveralls
uses: coverallsapp/github-action@master
with:
github-token: ${{ secrets.GITHUB_TOKEN }}
35 changes: 35 additions & 0 deletions .github/workflows/test_coverage.yml
@@ -0,0 +1,35 @@
name: Test Coverage

on: [push, pull_request]

jobs:
test:
runs-on: ubuntu-latest
strategy:
matrix:
node-version: [12.x]

steps:
- name: Checkout
uses: actions/checkout@v1

- name: Use Node.js ${{ matrix.node-version }}
uses: actions/setup-node@v1
with:
node-version: ${{ matrix.node-version }}

- name: NPM Install
run: npm ci --no-optional
env:
CI: true

- name: NPM Build
run: npm run build

- name: NPM Test Coverage
run: npm run test:coverage

- name: Coveralls
uses: coverallsapp/github-action@master
with:
github-token: ${{ secrets.GITHUB_TOKEN }}

0 comments on commit a175c3d

Please sign in to comment.