Debian Codegraph @

.github/workflows/ci.yaml

raw symbols SCIP
1 name: CI
2
3 on:
4 push:
5 branches:
6 - master
7 pull_request:
8 branches:
9 - master
10
11 jobs:
12
13 lint:
14 name: Golang-CI Lint
15 timeout-minutes: 10
16 strategy:
17 matrix:
18 platform: [ubuntu-latest]
19 runs-on: ${{ matrix.platform }}
20 steps:
21 - uses: actions/checkout@v2
22 - uses: golangci/golangci-lint-action@v2
23 with:
24 # must be specified without patch version
25 version: v1.46
26 cross:
27 name: Cross
28 timeout-minutes: 10
29 strategy:
30 matrix:
31 go-version: [1.17.x]
32 platform: [ubuntu-latest]
33 runs-on: ${{ matrix.platform }}
34 steps:
35 - name: Install Go
36 uses: actions/setup-go@v2
37 with:
38 go-version: ${{ matrix.go-version }}
39 - name: Checkout code
40 uses: actions/checkout@v2
41 - name: Cross
42 working-directory: ci
43 run: go run mage.go -v -w ../ crossBuild
44
45 test:
46 name: Unit test
47 timeout-minutes: 10
48 strategy:
49 matrix:
50 go-version: [1.17.x]
51 platform: [ubuntu-latest, windows-latest]
52 runs-on: ${{ matrix.platform }}
53 steps:
54 - name: Install Go
55 uses: actions/setup-go@v2
56 with:
57 go-version: ${{ matrix.go-version }}
58 - name: Checkout code
59 uses: actions/checkout@v2
60 - name: Test
61 run: go test -race -v ./...