-
-
Notifications
You must be signed in to change notification settings - Fork 39
74 lines (74 loc) · 2.26 KB
/
pr.yml
File metadata and controls
74 lines (74 loc) · 2.26 KB
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
70
71
72
73
74
name: Test on PR
on:
pull_request:
types: [assigned]
jobs:
test:
name: Test
runs-on: ubuntu-latest
if: |
contains(github.event.commits[0].message, '[skip ci]') == false &&
contains(github.event.commits[0].message, '[ci skip]') == false
steps:
- name: Set up Go 1.14
uses: actions/setup-go@v1
with:
go-version: 1.14
id: go
- name: Check out Code
uses: actions/checkout@v1
- name: Cache go modules
id: cache
uses: actions/cache@preview
with:
path: ~/go/pkg/mod
key: ${{ runner.os }}-go-${{ hashFiles('**/go.sum') }}
restore-keys: |
${{ runner.os }}-go-
- name: Install Dependencies
if: steps.cache.outputs.cache-hit != 'true'
run: go mod download
- name: Unit Test
run: make test-unit
- name: Integration Test
run: make test-inte
continue-on-error: true
- name: Coverage Test
run: make test-cover
- name: Upload coverage to Codecov
# -U "--proxy http://http-proxy"
run: bash <(curl -s https://codecov.io/bash)
-F unittests
-n codecov-micros
-f ./build/coverage.txt
-B "${GITHUB_REF//refs\/heads\//}"
-T "${GITHUB_REF//refs\/tags\//}"
-C "${GITHUB_SHA}"
-Z || echo 'Codecov upload failed'
env:
CI: true
CODECOV_ENV: github-action
CODECOV_TOKEN: ${{ secrets.CODECOV_TOKEN }}
CODECOV_PR: ${{ github.event.after }}
CODECOV_SHA: ${{ github.sha }}
# fuzzing:
# name: Run fuzzing
# runs-on: ubuntu-latest
# steps:
# - name: Set up Go 1.14
# uses: actions/setup-go@v1
# with:
# go-version: 1.14
# - name: Checkout code
# uses: actions/checkout@v1
# - name: fuzz regression tests
# run: ./scripts/fuzzit.sh
# env:
# FUZZIT_API_KEY: ${{ secrets.FUZZIT_API_KEY }}
# TYPE: local-regression
# - name: fuzz continuous job
# run: ./scripts/fuzzit.sh
# if: github.event_name == 'push' && github.ref == 'refs/heads/master'
# env:
# FUZZIT_API_KEY: ${{ secrets.FUZZIT_API_KEY }}
# TYPE: fuzzing