-
Notifications
You must be signed in to change notification settings - Fork 3
38 lines (31 loc) · 926 Bytes
/
deno.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
name: Deno
on:
push:
branches: [ main ]
pull_request:
branches: [ main ]
jobs:
deno:
runs-on: ubuntu-latest
strategy:
matrix:
# we test on both most recent stable version of deno (v1.x) as well as
# the version of deno used by Run on Slack (v1.31.1)
deno-version: [v1.x, v1.31.1]
steps:
- name: Setup repo
uses: actions/checkout@v4
- name: Setup Deno ${{ matrix.deno-version }}
uses: denoland/setup-deno@v2
with:
deno-version: ${{ matrix.deno-version }}
- name: Run tests
run: deno task test
- name: Generate CodeCov-friendly coverage report
run: deno task coverage
- name: Upload coverage to CodeCov
if: ${{ matrix.deno-version == 'v1.x' }}
uses: codecov/[email protected]
with:
files: ./lcov.info
token: ${{ secrets.CODECOV_TOKEN }}