-
Notifications
You must be signed in to change notification settings - Fork 45
62 lines (60 loc) · 1.86 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
58
59
60
61
62
on: [pull_request]
name: Test
jobs:
linux:
runs-on: ubuntu-latest
steps:
- uses: actions/setup-go@v4
with:
go-version: 1.23.x
- uses: actions/checkout@v4
- name: Install Requirements
run: |
curl -sSfL https://raw.githubusercontent.com/golangci/golangci-lint/master/install.sh | sh -s -- -b $(go env GOPATH)/bin v1.61.0
go install github.com/fzipp/gocyclo/cmd/gocyclo@latest
make dep
chmod +x ./ci_scripts/create-ip-aliases.sh
./ci_scripts/create-ip-aliases.sh
shell: bash
- name: Checking Format and Testing
run: make check
- name: Build
run: make build
darwin:
runs-on: macos-latest
steps:
- uses: actions/setup-go@v4
with:
go-version: 1.23.x
- uses: actions/checkout@v4
- name: Install Requirements
run: |
curl -sSfL https://raw.githubusercontent.com/golangci/golangci-lint/master/install.sh | sh -s -- -b $(go env GOPATH)/bin v1.61.0
go install github.com/fzipp/gocyclo/cmd/gocyclo@latest
make dep
chmod +x ./ci_scripts/create-ip-aliases.sh
./ci_scripts/create-ip-aliases.sh
shell: bash
- name: Checking Format and Testing
run: make check
- name: Build
run: make build
windows:
runs-on: windows-latest
steps:
- uses: actions/setup-go@v4
with:
go-version: 1.23.x
- uses: actions/checkout@v4
- name: Install Requirements
run: |
choco install make
go install github.com/fzipp/gocyclo/cmd/gocyclo@latest
go install github.com/golangci/golangci-lint/cmd/golangci-lint@v1.61.0
make dep
- name: Testing
run: |
set GO111MODULE=on
make check-windows
- name: Build
run: make build-windows