-
Notifications
You must be signed in to change notification settings - Fork 25
49 lines (48 loc) · 1.14 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
---
on:
push:
branches: [devel]
pull_request:
branches: ["**"]
name: Test
jobs:
test:
env:
GO111MODULE: "on"
strategy:
matrix:
go-version: [1.16.x]
os: [ubuntu-latest, macos-latest, windows-latest]
runs-on: ${{ matrix.os }}
steps:
- name: Install Go
uses: actions/setup-go@v2
with:
go-version: ${{ matrix.go-version }}
- name: Checkout code
uses: actions/checkout@v2
- name: Build
run: make local-build
- name: Test
shell: bash
run: |
if [ "$RUNNER_OS" == "Windows" ]; then
make local-test-windows
else
make local-test
fi
env:
GITHUB_TOKEN: ${{ secrets.GH_TKN }}
staticcheck:
runs-on: ubuntu-latest
steps:
- name: Install Go
uses: actions/setup-go@v2
with:
go-version: "1.17.x"
- name: Checkout code
uses: actions/checkout@v2
- name: Install staticcheck
run: go install honnef.co/go/tools/cmd/staticcheck@2022.1
- name: Run staticcheck
run: staticcheck ./...