-
Notifications
You must be signed in to change notification settings - Fork 17
38 lines (30 loc) · 992 Bytes
/
ci-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
# GitHub actions
# https://docs.github.com/en/free-pro-team@latest/actions
name: ci-test
on: [push, pull_request]
jobs:
test:
runs-on: ubuntu-latest
strategy:
matrix:
deno-version: [1.44.4]
steps:
- name: Git Checkout Deno Module
uses: actions/checkout@v3
- name: Use Deno Version ${{ matrix.deno-version }}
uses: denoland/setup-deno@v1
with:
deno-version: ${{ matrix.deno-version }}
- name: format check
run: deno fmt --check mod.ts utils/* scripts/* tests/*
- name: run linter
run: deno lint mod.ts utils/* scripts/* tests/*
- name: run test
run: deno test --allow-all --coverage=cov/
- name: Generate coverage report
run: deno coverage --lcov cov > cov.lcov
- name: Upload coverage to Coveralls.io
uses: coverallsapp/github-action@master
with:
github-token: ${{ secrets.GITHUB_TOKEN }}
path-to-lcov: cov.lcov