chore: display coverage

This commit is contained in:
Ricardo Arturo Cabral Mejia 2022-10-18 14:09:07 +00:00
parent 871f67275a
commit 1bf3cd0305
No known key found for this signature in database
GPG Key ID: 5931EBF43A650245

View File

@ -10,6 +10,8 @@ jobs:
lint:
name: Lint
runs-on: ubuntu-latest
container:
image: node:18-alpine3.16
steps:
- uses: actions/checkout@v3
- uses: actions/setup-node@v3
@ -23,6 +25,8 @@ jobs:
build:
name: Build
runs-on: ubuntu-latest
container:
image: node:18-alpine3.16
needs: [lint]
steps:
- uses: actions/checkout@v3
@ -37,6 +41,8 @@ jobs:
test:
name: Tests
runs-on: ubuntu-latest
container:
image: node:18-alpine3.16
needs: [build]
steps:
- uses: actions/checkout@v3
@ -51,6 +57,8 @@ jobs:
coverage:
name: Coverage
runs-on: ubuntu-latest
container:
image: node:18-alpine3.16
needs: [build]
steps:
- uses: actions/checkout@v3
@ -62,3 +70,6 @@ jobs:
run: npm ci
- name: Run coverage
run: npm run cover
- uses: romeovs/lcov-reporter-action@v0.2.16
with:
lcov-file: ./.coverage/lcov.info