-
Notifications
You must be signed in to change notification settings - Fork 0
50 lines (39 loc) · 1.09 KB
/
ci.yml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
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