update otel to 1.25 and min go version to 1.21 #58
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: | |
branches: | |
- main | |
pull_request: | |
env: | |
# Path to where test results will be saved. | |
TEST_RESULTS: /tmp/test-results | |
# Default version of Go to use by CI workflows. This should be the latest | |
# release of Go; developers likely use the latest release in development and | |
# we want to catch any bugs (e.g. lint errors, race detection) with this | |
# release before they are merged. The Go compatibility guarantees ensure | |
# backwards compatibility with the previous two minor releases and we | |
# explicitly test our code for these versions so keeping this at prior | |
# versions does not add value. | |
DEFAULT_GO_VERSION: "1.20" | |
jobs: | |
test-coverage: | |
runs-on: ubuntu-latest | |
steps: | |
- name: Checkout Repo | |
uses: actions/checkout@v3 | |
- name: Setup Environment | |
run: | | |
echo "GOPATH=$(go env GOPATH)" >> $GITHUB_ENV | |
echo "$(go env GOPATH)/bin" >> $GITHUB_PATH | |
- name: Install Go | |
uses: actions/setup-go@v4 | |
with: | |
go-version: ${{ env.DEFAULT_GO_VERSION }} | |
cache-dependency-path: "**/go.sum" | |
- name: Run coverage tests | |
run: | | |
make test-coverage | |
- name: Upload coverage reports to codecov | |
uses: codecov/codecov-action@v3 | |
env: | |
CODECOV_TOKEN: ${{ secrets.CODECOV_TOKEN }} | |
test-race: | |
runs-on: ubuntu-latest | |
steps: | |
- name: Checkout Repo | |
uses: actions/checkout@v4 | |
- name: Install Go | |
uses: actions/setup-go@v4 | |
with: | |
go-version: ${{ env.DEFAULT_GO_VERSION }} | |
check-latest: true | |
cache-dependency-path: "**/go.sum" | |
- name: Run tests with race detector | |
run: make test-race |