build(deps): Bump go.opentelemetry.io/otel from 1.32.0 to 1.33.0 #8196
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: go tests | |
on: | |
pull_request: | |
push: | |
branches: | |
- main* | |
jobs: | |
unit_tests: | |
runs-on: charon-ci | |
steps: | |
- uses: actions/checkout@v3 | |
- uses: ./.github/actions/setup-go | |
- uses: actions/cache@v3 | |
with: | |
path: | | |
~/go/pkg/mod | |
~/.cache/go-build | |
key: ${{ runner.os }}-go-${{ hashFiles('**/go.sum') }} | |
restore-keys: | | |
${{ runner.os }}-go- | |
- run: go test -coverprofile=coverage.out -covermode=atomic -timeout=5m -race ./... | |
- name: Upload coverage to Codecov | |
uses: codecov/codecov-action@v3.1.1 | |
with: | |
token: ${{ secrets.CODECOV_TOKEN }} | |
files: coverage.out | |
integration_tests: | |
runs-on: charon-ci | |
if: ${{ always() }} # makes this step always execute, even if unit_tests fails | |
needs: | |
- unit_tests | |
steps: | |
- uses: actions/checkout@v3 | |
- uses: ./.github/actions/setup-go | |
- uses: actions/cache@v3 | |
with: | |
path: | | |
~/go/pkg/mod | |
~/.cache/go-build | |
key: ${{ runner.os }}-go-${{ hashFiles('**/go.sum') }} | |
restore-keys: | | |
${{ runner.os }}-go- | |
- run: go test -v -timeout=10m -race github.com/obolnetwork/charon/testutil/integration -integration | |
compose_tests: | |
runs-on: charon-ci | |
if: ${{ always() }} # makes this step always execute, even if unit_tests or integration_tests fails | |
needs: | |
- unit_tests | |
- integration_tests | |
steps: | |
- uses: actions/checkout@v3 | |
- name: Set up QEMU | |
id: qemu | |
uses: docker/setup-qemu-action@v2 | |
- uses: docker/setup-buildx-action@v2 # For compose to build images | |
with: | |
driver-opts: "image=moby/buildkit:v0.10.5" # avoid unknown/unknown arch in ghcr | |
- uses: ./.github/actions/setup-go | |
- uses: actions/cache@v3 | |
with: | |
path: | | |
~/go/pkg/mod | |
~/.cache/go-build | |
key: ${{ runner.os }}-go-${{ hashFiles('**/go.sum') }} | |
restore-keys: | | |
${{ runner.os }}-go- | |
- run: | | |
echo "CHARON_REPO=$(pwd)" >> $GITHUB_ENV | |
echo "DOCKER_BUILDKIT=1" >> $GITHUB_ENV | |
- run: go test -race github.com/obolnetwork/charon/testutil/compose/smoke -v -integration -sudo-perms -timeout=20m -log-dir=. | |
- uses: actions/upload-artifact@v3 | |
if: always() | |
with: | |
name: smoke-test-logs | |
path: testutil/compose/smoke/*.log | |
retention-days: 3 |