Skip to content

Commit

Permalink
#10 Add test coverage report (#12)
Browse files Browse the repository at this point in the history
  • Loading branch information
nevendyulgerov authored Sep 30, 2023
1 parent c76f5b4 commit 15580dd
Show file tree
Hide file tree
Showing 4 changed files with 23 additions and 0 deletions.
6 changes: 6 additions & 0 deletions .github/workflows/deploy.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -29,6 +29,12 @@ jobs:
- name: Run tests
run: npm run ci:test

- name: Publish coveralls report
uses: coverallsapp/github-action@master
with:
path-to-lcov: 'coverage/lcov.info'
github-token: ${{ secrets.GITHUB_TOKEN }}

- name: Aquarium Login
run: npm run sqd:auth
env:
Expand Down
6 changes: 6 additions & 0 deletions .github/workflows/docker.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -32,6 +32,12 @@ jobs:
- name: Run tests
run: npm run ci:test

- name: Publish coveralls report
uses: coverallsapp/github-action@master
with:
path-to-lcov: 'coverage/lcov.info'
github-token: ${{ secrets.GITHUB_TOKEN }}

- name: Docker meta
id: docker_meta
uses: docker/metadata-action@v4
Expand Down
1 change: 1 addition & 0 deletions README.md
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
## Rollups Explorer Backend
[![Coverage Status](https://coveralls.io/repos/github/cartesi/rollups-explorer-api/badge.svg?branch=main)](https://coveralls.io/github/cartesi/rollups-explorer-api?branch=main)

Experimentation with subsquid as a new indexing protocol.

Expand Down
10 changes: 10 additions & 0 deletions vitest.config.ts
Original file line number Diff line number Diff line change
@@ -0,0 +1,10 @@
import { defineConfig } from 'vitest/config'
import { UserConfig } from 'vitest';

export default defineConfig({
test: {
coverage: {
reporter: ['text', 'lcov'],
},
} as UserConfig,
})

0 comments on commit 15580dd

Please sign in to comment.