Skip to content

1.0.7

1.0.7 #6

Workflow file for this run

name: Coverage
on:
push:
branches: [master]
pull_request:
branches: [master]
workflow_dispatch:
jobs:
coverage:
runs-on: ubuntu-latest
environment: production
steps:
- uses: actions/checkout@v2
- name: Use Node.js
uses: actions/setup-node@v1
with:
node-version: "16.x"
- name: Install dependencies
run: "npm i"
- name: Test
id: "test"
run: "npm run test"
- name: Generate coverage
id: "coverage"
if: steps.test.outcome == 'success'
run: "npm run coverage"
- name: Publish to coveralls.io
if: steps.coverage.outcome == 'success'
uses: coverallsapp/[email protected]
with:
github-token: ${{ secrets.GITHUB_TOKEN }}