Skip to content

chore: update Golang in Dockerfiles #583

chore: update Golang in Dockerfiles

chore: update Golang in Dockerfiles #583

Workflow file for this run

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