-
-
Notifications
You must be signed in to change notification settings - Fork 3
47 lines (45 loc) · 1.17 KB
/
test.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
name: Test
on: [push, pull_request, workflow_dispatch]
jobs:
Lint:
runs-on: ubuntu-latest
steps:
- name: Git Checkout Module
uses: actions/checkout@v2
- name: Use Deno
uses: denoland/setup-deno@v2
with:
deno-version: v2.x
- name: 😉 Format
run: deno fmt --check
- name: 😋 Lint
run: deno lint
Type-Check:
runs-on: ubuntu-latest
steps:
- name: Git Checkout Module
uses: actions/checkout@v2
- name: Use Deno
uses: denoland/setup-deno@v2
with:
deno-version: v2.x
- name: 🧐 Type Check
run: deno task check
Test:
runs-on: ubuntu-latest
steps:
- name: Git Checkout Module
uses: actions/checkout@v2
- name: Use Deno
uses: denoland/setup-deno@v2
with:
deno-version: v2.x
- name: 😎 Test
run: deno task test --coverage=coverage
- name: Create coverage report
run: deno coverage ./coverage --lcov > coverage.lcov
- name: Codecov
uses: codecov/codecov-action@v5
with:
files: ./coverage.lcov
fail_ci_if_error: true