Debian Codegraph @

.github/workflows/test.yml

raw symbols SCIP
1 name: Lint, Test, Build
2
3 on:
4 push:
5 tags-ignore:
6 - 'v*'
7 branches:
8 - "**"
9 pull_request:
10
11 jobs:
12 lintTestBuild:
13 name: Lint, Test, Build
14 runs-on: ubuntu-20.04
15 strategy:
16 matrix:
17 go: [ '1.15', '1.16' ]
18 steps:
19 -
20 name: Checkout
21 uses: actions/checkout@v2
22 -
23 name: Setup Go
24 uses: actions/setup-go@v2
25 with:
26 go-version: ${{ matrix.go }}
27 -
28 name: golangci-lint
29 uses: golangci/golangci-lint-action@v2
30 with:
31 # Optional: version of golangci-lint to use in form of v1.2 or v1.2.3 or `latest` to use the latest version
32 version: 'latest'
33
34 # Optional: working directory, useful for monorepos
35 # working-directory: somedir
36
37 # Optional: golangci-lint command line arguments.
38 args: --timeout=30m
39
40 # Optional: show only new issues if it's a pull request. The default value is `false`.
41 # only-new-issues: true
42
43 # Optional: if set to true then the action will use pre-installed Go.
44 # skip-go-installation: true
45
46 # Optional: if set to true then the action don't cache or restore ~/go/pkg.
47 # skip-pkg-cache: true
48
49 # Optional: if set to true then the action don't cache or restore ~/.cache/go-build.
50 # skip-build-cache: true
51 -
52 name: Test, Build
53 id: lintTestBuild
54 run: V=1 make ci
55 -
56 name: Codecov
57 uses: codecov/[email protected]
58 with:
59 token: ${{ secrets.CODECOV_TOKEN }} # not required for public repos
60 file: ./coverage.out # optional
61 name: codecov-umbrella # optional
62 fail_ci_if_error: true # optional (default = false)