Feat: Support Otel v1.24.0 #40
Workflow file for this run
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
name: ci | |
on: | |
push: | |
paths-ignore: | |
- "**.md" | |
- LICENCE | |
branches: | |
- master | |
pull_request: | |
jobs: | |
test-build: | |
strategy: | |
matrix: | |
go-version: ["1.15", "1.16", "1.17", "1.18", "1.19", "1.20"] | |
os: [ubuntu-latest, macos-latest, windows-latest] | |
# Currently Github Action does not support `arm*` architecture on default runners. | |
# Check here for details: https://github.com/orgs/community/discussions/25319#discussioncomment-3247468 | |
arch: ["386", "amd64"] | |
exclude: | |
# Unsupported OS architecture | |
- os: macos-latest | |
arch: ["386"] | |
runs-on: ${{ matrix.os }} | |
steps: | |
- name: Install Go | |
uses: actions/setup-go@v5 | |
with: | |
go-version: ${{ matrix.go-version }} | |
- name: Checkout Code | |
uses: actions/checkout@v4 | |
- name: Setup Environment | |
run: | | |
echo "GOPATH=$(go env GOPATH)" >> $GITHUB_ENV | |
echo "$(go env GOPATH)/bin" >> $GITHUB_PATH | |
shell: bash | |
- name: Cache Go Modules | |
uses: actions/cache@v2 | |
env: | |
cache-name: go-mod-cache | |
with: | |
path: ~/go/pkg/mod | |
key: ${{ runner.os }}-${{ env.cache-name }}-${{ hashFiles('**/go.sum') }} | |
- name: Run automated tests | |
env: | |
GOARCH: ${{ matrix.arch }} | |
run: go test ./... | |
- name: Test build | |
env: | |
GOARCH: ${{ matrix.arch }} | |
run: go build |