-
Notifications
You must be signed in to change notification settings - Fork 92
57 lines (52 loc) · 1.36 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
48
49
50
51
52
53
54
55
56
57
name: Tests
on:
workflow_dispatch:
push:
branches:
- master
- dev
pull_request:
branches:
- master
- dev
jobs:
test:
name: Test
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v3
- name: Set up Go
uses: actions/setup-go@v3
with:
go-version: stable
- name: Set up project
run: make install
- name: Test
run: make test
# - uses: actions/upload-artifact@v3
# with:
# name: coverage_profile
# path: ./cover.profile
# report:
# name: Report
# runs-on: ubuntu-latest
# needs: [test]
# steps:
# - uses: actions/checkout@v3
#
# - name: Set up Go
# uses: actions/setup-go@v3
# with:
# go-version: stable
#
# - name: Install
# run: go install github.com/mattn/goveralls@latest
#
# - uses: actions/download-artifact@v3
# with:
# name: coverage_profile
#
# - name: Send coverage
# env:
# COVERALLS_TOKEN: ${{ secrets.GITHUB_TOKEN }}
# run: goveralls -coverprofile=./cover.profile -service=github