Skip to content

Bsp-agent-DTM-RC:v1.7.5 #195

Bsp-agent-DTM-RC:v1.7.5

Bsp-agent-DTM-RC:v1.7.5 #195

Workflow file for this run

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 }}