Release v3.13.2 #86
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: build | |
on: [push, pull_request] | |
jobs: | |
Linux: | |
name: Linux | |
runs-on: ubuntu-latest | |
steps: | |
- name: Collect Workflow Telemetry | |
uses: runforesight/foresight-workflow-kit-action@v1 | |
if: success() || failure() | |
- name: Set up Go 1.21 | |
uses: actions/setup-go@v4.1.0 | |
with: | |
go-version: '1.21' | |
check-latest: true | |
id: go | |
- name: Check out code into the Go module directory | |
uses: actions/checkout@v4 | |
- name: Extract branch name | |
run: echo "::set-output name=branch::$(echo ${GITHUB_REF#refs/heads/})" | |
id: extract_branch | |
- name: Add $GOPATH/bin to PATH | |
run: echo "$(go env GOPATH)/bin" >> $GITHUB_PATH | |
id: setup_path | |
- name: Build | |
run: make ci | |
env: | |
GOA_BRANCH: ${{ steps.extract_branch.outputs.branch }} | |
- name: Compute code coverage | |
run: go test -v -json -coverprofile=coverage.out ./...> ./test-report.json || true | |
- name: Analyze Test and/or Coverage Results | |
uses: runforesight/foresight-test-kit-action@v1 | |
if: success() || failure() | |
with: | |
test_format: JSON | |
test_framework: GOLANG | |
test_path: "./test-report.json" | |
coverage_format: GOLANG | |
coverage_path: ./coverage.out |