-
Notifications
You must be signed in to change notification settings - Fork 0
43 lines (34 loc) · 1020 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
39
40
41
42
43
name: "CI: checks and tests"
on:
push:
branches:
- develop
- main
- bugfix/**
- feature/**
- hotfix/**
- release/**
permissions:
contents: read
jobs:
test:
runs-on: ubuntu-latest
steps:
- name: Setup repo
uses: actions/checkout@v4
# https://github.com/denoland/setup-deno/releases
- name: Setup Deno
uses: denoland/setup-deno@4606d5cc6fb3f673efd4f594850e3f4b3e9d29cd
with:
deno-version: v2.x
- name: Run linter
run: deno lint
- name: Run tests and activate coverage
run: deno test --allow-read --allow-write --unstable-kv --allow-env --allow-net --coverage -- --database=./test/it-database.sqlite3 --scan=config.yml
- name: Generate lcov report
run: deno task lcov
- name: Check test coverage minimum 90%
uses: terencetcf/github-actions-lcov-minimum-coverage-checker@v1
with:
coverage-file: cov.lcov
minimum-coverage: 90