p2p: Telemetry and metrics improvements #2155
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
# Test tools directories that have their own go.mod files, and | |
# otherwise wouldn't get tested along with the main go-algorand build. | |
name: Test tools modules | |
on: | |
push: | |
branches: | |
- master | |
paths: | |
- 'tools/block-generator/**' | |
- 'tools/x-repo-types/**' | |
pull_request: | |
jobs: | |
tools_test: | |
name: Test tools modules | |
runs-on: ubuntu-latest | |
steps: | |
- name: Check out code into the Go module directory | |
uses: actions/checkout@v4 | |
# move go out of the way temporarily to avoid "go list ./..." from installing modules | |
- name: Make libsodium.a | |
run: sudo mv /usr/bin/go /usr/bin/go.bak && make crypto/libs/linux/amd64/lib/libsodium.a && sudo mv /usr/bin/go.bak /usr/bin/go | |
- name: Add bin to PATH | |
run: | | |
echo "$GITHUB_WORKSPACE/bin" >> $GITHUB_PATH | |
echo "$RUNNER_WORKSPACE/$(basename $GITHUB_REPOSITORY)/bin" >> $GITHUB_PATH | |
- name: Determine Go version | |
id: go_version | |
run: echo "GO_VERSION=$(./scripts/get_golang_version.sh)" >> $GITHUB_ENV | |
- name: Install go version | |
uses: actions/[email protected] | |
with: | |
go-version: ${{ env.GO_VERSION }} | |
- name: Test tools/block-generator | |
run: | | |
cd tools/block-generator | |
go test -v ./... | |
- name: Test tools/x-repo-types | |
run: | | |
cd tools/x-repo-types | |
go test -v ./... |