forked from denoland/deno_kv_oauth
-
Notifications
You must be signed in to change notification settings - Fork 0
51 lines (42 loc) · 1.02 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
51
name: CI
on:
push:
branches: [main]
pull_request:
branches: [main]
jobs:
ci:
runs-on: ${{ matrix.os }}
strategy:
fail-fast: false
matrix:
deno:
- v1.x
- canary
os:
- ubuntu-latest
- windows-latest
- macOS-latest
steps:
- name: Setup repo
uses: actions/checkout@v4
- name: Setup Deno
uses: denoland/setup-deno@v1
with:
deno-version: ${{ matrix.deno }}
- name: Check typos
if: matrix.os == 'ubuntu-latest'
uses: crate-ci/typos@master
with:
config: .github/_typos.toml
- name: Check formatting, linting, types and run tests
run: deno task ok
- name: Publish (dry-run)
run: deno publish --dry-run --allow-dirty
- name: Create lcov file
run: deno task cov:gen
- name: Upload coverage
uses: codecov/codecov-action@v4
with:
name: ${{ matrix.os }}
files: cov.lcov