-
Notifications
You must be signed in to change notification settings - Fork 24
69 lines (56 loc) · 1.44 KB
/
ci.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
63
64
65
66
67
68
69
name: ci
on:
push:
branches: [ main ]
pull_request:
branches: [ main ]
jobs:
build:
strategy:
fail-fast: false
matrix:
go: [ "1.21", "1.22" ]
package: [ "common", "influx2otel", "otel2influx", "jaeger-influxdb", "tests-integration" ]
exclude:
- go: 1.21
package: jaeger-influxdb
- go: 1.21
package: tests-integration
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
with:
fetch-depth: 1
- uses: actions/setup-go@v5
with:
go-version: ${{ matrix.go }}
- name: Test
run: >
cd ${{ matrix.package }} &&
go test ./...
- name: Fmt
run: >
test -z $(gofmt -s -l ./${{ matrix.package }} | head -n 1) || ( gofmt -s -d ./${{ matrix.package }} ; exit 1 )
- name: Vet
run: >
cd ${{ matrix.package }} &&
go vet ./...
- name: staticcheck
run: >
go install honnef.co/go/tools/cmd/[email protected] &&
cd ${{ matrix.package }} &&
staticcheck -f stylish ./...
build-otelcol-influxdb:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
with:
fetch-depth: 1
- uses: actions/setup-go@v5
with:
go-version: "1.22"
- name: build
run: >
go install go.opentelemetry.io/collector/cmd/[email protected] &&
cd otelcol-influxdb &&
builder --config build.yml