-
Notifications
You must be signed in to change notification settings - Fork 0
63 lines (56 loc) · 1.6 KB
/
pr.yaml
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
52
53
54
55
56
57
58
59
60
61
62
63
name: PR CI
on:
pull_request:
branches: ['**']
jobs:
node_ci:
name: Node.js CI
runs-on: ${{ matrix.os }}
timeout-minutes: 5
defaults:
run:
shell: bash
strategy:
matrix:
os: [ubuntu-latest, windows-latest, macos-latest]
node_version: ['12.22.12', '14.19.2', '16.15.0']
steps:
- uses: actions/checkout@v3
- name: Use Node.js ${{ matrix.node_version }}
uses: actions/setup-node@v3
with:
node-version: '${{ matrix.node_version }}'
cache: 'npm'
- run: npm ci
- run: npm run build
- run: npm pack
deno_ci:
name: Deno CI
runs-on: ${{ matrix.os }}
timeout-minutes: 5
defaults:
run: { shell: bash }
strategy:
matrix:
os: [ubuntu-latest, windows-latest, macos-latest]
deno_version: ['v1.17.0', 'v1.21.1', 'vx.x.x']
steps:
- uses: actions/checkout@v3
- name: Use Deno ${{ matrix.deno_version }}
uses: denoland/setup-deno@v1
with:
deno-version: '${{ matrix.deno_version }}'
- run: deno fmt --check
if: matrix.deno_version == 'vx.x.x'
- run: deno lint
if: matrix.deno_version == 'vx.x.x'
- run: deno test --allow-all
- name: deno coverage cov_profile/
if: matrix.deno_version == 'vx.x.x'
run: |
rm -rf cov_profile/ || true
deno test --allow-all --coverage=cov_profile/ > /dev/null 2>&1
deno coverage cov_profile/
- name: Check coverage 100%
if: matrix.deno_version == 'vx.x.x'
run: ./scripts/check-coverage 100