-
Notifications
You must be signed in to change notification settings - Fork 0
69 lines (59 loc) · 1.62 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
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
name: ci
on:
push:
branches:
- '*'
tags-ignore:
- '*'
pull_request:
branches:
- '*'
tags-ignore:
- '*'
env:
CI_SKIP: false
jobs:
test:
if: "!contains(github.event.head_commit.message, '[ci skip]') && !contains(github.event.head_commit.message, 'doc:')"
name: ${{ matrix.os }} ${{ matrix.target }}
runs-on: ${{ matrix.os }}
strategy:
matrix:
os: [macos-latest, ubuntu-18.04, windows-2019]
target: [0.41]
timeout-minutes: 120
steps:
- name: Checkout
uses: actions/checkout@v2
- name: Git log
shell: bash
run: |
if [ -n "$(git log --format=%B -n 1 | grep -iE '^[0-9]+[.]{1,}[0-9]+[.]{1,}[0-9]+')" ]; then
echo '::set-env name=CI_SKIP::true'
fi
- name: Setup deno@${{ matrix.target }}
if: "env.CI_SKIP == 'false'"
uses: denolib/setup-deno@master
with:
deno-version: ${{ matrix.target }}
- name: List versions
if: "env.CI_SKIP == 'false'"
continue-on-error: true
shell: bash
run: |
deno --version && which deno && pwd && npx envinfo
- name: Test
if: "env.CI_SKIP == 'false'"
run: |
deno test --reload
- name: Benchmark
if: "env.CI_SKIP == 'false' && success()"
run: |
deno run ./bench.ts --reload
# - name: Upload coverage to codecov
# uses: codecov/codecov-action@v1
# if: success()
# with:
# token: ${{ secrets.CODECOV_TOKEN }}
# file: ./coverage/lcov.info
# flags: unit_tests