-
Notifications
You must be signed in to change notification settings - Fork 200
47 lines (40 loc) · 1.07 KB
/
go.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
name: Go
on:
push:
branches: [ master ]
pull_request:
branches: [ master ]
jobs:
build:
strategy:
matrix:
os: [ubuntu-latest, macos-12, windows-latest]
runs-on: ${{ matrix.os }}
environment: CI
steps:
- uses: actions/checkout@v4
with:
submodules: true
- name: Set up Go
uses: actions/setup-go@v5
with:
go-version: "1.20"
- name: Unit Test
run: make test
- name: Upload coverage infomartion
uses: codecov/codecov-action@v4
env:
CODECOV_TOKEN: ${{ secrets.CODECOV_TOKEN }}
- name: Smoking Test
run: go run ./main/main.go
- run: |
make build
make install
bash ./integration/vpc_test.sh
bash ./integration/oss_test.sh
bash ./integration/https_proxy.sh
if: env.ACCESS_KEY_ID != '' && env.ACCESS_KEY_SECRET != '' && matrix.os != 'windows-latest'
env:
ACCESS_KEY_ID: ${{ secrets.ACCESS_KEY_ID }}
ACCESS_KEY_SECRET: ${{ secrets.ACCESS_KEY_SECRET }}
REGION_ID: ${{ secrets.REGION_ID }}