Skip to content

docs: test coverage explorer #440

docs: test coverage explorer

docs: test coverage explorer #440

Workflow file for this run

name: CI
on:
push:
branches: main
pull_request:
branches: main
jobs:
ci:
runs-on: ubuntu-latest
permissions:
id-token: write # Needed for auth with Deno Deploy
contents: read # Needed to clone the repository
services:
redis:
image: redis
ports:
# Maps port 6379 on service container to the host
- 6379:6379
steps:
- name: Setup repo
uses: actions/checkout@v4
- name: Setup Deno
uses: denoland/setup-deno@v2
- name: Verify formatting, run linter, run tests and generate lcov
run: deno task ok
- name: Create lcov file
run: deno coverage --lcov --output=cov.lcov
- name: Upload coverage
uses: codecov/codecov-action@v5
env:
CODECOV_TOKEN: ${{ secrets.CODECOV_TOKEN }}
- name: Build coverage explorer
run: deno coverage --html
- name: Upload to Deno Deploy
uses: denoland/deployctl@v1
with:
project: r2d2-coverage
entrypoint: jsr:@std/http/file-server
root: coverage/html