-
Notifications
You must be signed in to change notification settings - Fork 59
41 lines (36 loc) · 1.01 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
# This workflow will build a golang project
# For more information see: https://docs.github.com/en/actions/automating-builds-and-tests/building-and-testing-go
name: GoTest
on:
push:
branches: [ "main" ]
pull_request:
branches: [ "main" ]
schedule:
# daily at 3:24 UTC
- cron: '24 3 * * *'
jobs:
build:
runs-on: ubuntu-latest
strategy:
# If you want to matrix build , you can append the following list.
matrix:
go_version:
- 1.21
- 1.22
os:
- ubuntu-latest
steps:
- uses: actions/checkout@v4
- name: Set up Go
uses: actions/setup-go@v4
with:
go-version: ${{ matrix.go_version }}
- name: Build
run: make build
- name: InstUt
run: go test -v ./pkg/... -coverprofile=coverage.txt -covermode=atomic
- name: Coverage
run: bash <(curl -s https://codecov.io/bash)
- name: Test
run: go test -short -timeout 50m -v github.com/alibaba/opentelemetry-go-auto-instrumentation/test