-
Notifications
You must be signed in to change notification settings - Fork 18
51 lines (44 loc) · 1.21 KB
/
main.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
name: CI
on:
push:
branches: [ master ]
pull_request:
branches: [ master ]
jobs:
build_and_test:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v2
- name: Set up Go
uses: actions/setup-go@v2
with:
go-version: 1.21
- name: Build
run: go build -v ./...
- name: Test
run: go test -v ./...
golangci-lint:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v2
- name: Run golangci-lint
# You may pin to the exact commit or the version.
# uses: golangci/golangci-lint-action@5c56cd6c9dc07901af25baab6f2b0d9f3b7c3018
uses: golangci/[email protected]
# for settings see https://github.com/golangci/golangci-lint-action
with:
only-new-issues: true
# golangci-lint command line arguments
args: --timeout=5m0s
examples:
name: examples
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v2
- name: Run examples
run: make examples
- name: Archive code coverage results
uses: actions/upload-artifact@v2
with:
name: allure-results
path: ./examples/allure-results