Bsp-agent-DTM-RC:v1.7.5 #179
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-test | |
on: | |
push: | |
branches: | |
- "main" | |
pull_request: | |
branches: | |
- "main" | |
- "develop" | |
jobs: | |
build: | |
runs-on: ubuntu-latest | |
steps: | |
- uses: actions/checkout@v4 | |
- name: Setup Go 1.22.5 | |
uses: actions/setup-go@v4 | |
with: | |
# Semantic version range syntax or exact version of Go | |
go-version: '1.22.5' | |
cache-dependency-path: ./go.sum | |
- name: Install dependencies | |
run: | | |
go get -d ./... | |
- name: Build Binaries | |
run: go build -v ./... | |
- name: Test with the Go CLI | |
run: go test ./... -coverprofile=coverage.out | |
- name: Upload coverage reports to Codecov | |
uses: codecov/codecov-action@v3 | |
env: | |
CODECOV_TOKEN: ${{ secrets.CODECOV_TOKEN }} | |