chore(netxlite): isolate and annotate quirky functions #3860
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
# Runs tests and computes the code coverage | |
name: coverage | |
on: | |
pull_request: | |
push: | |
branches: | |
- "master" | |
- "release/**" | |
- "fullbuild" | |
jobs: | |
measure_coverage: | |
runs-on: ubuntu-22.04 | |
steps: | |
- uses: actions/checkout@v3 | |
- name: Get GOVERSION content | |
id: goversion | |
run: echo "version=$(cat GOVERSION)" >> "$GITHUB_OUTPUT" | |
- uses: magnetikonline/action-golang-cache@v4 | |
with: | |
go-version: "${{ steps.goversion.outputs.version }}" | |
cache-key-suffix: "-coverage-${{ steps.goversion.outputs.version }}" | |
- run: go test -short -race -tags shaping -coverprofile=probe-cli.cov ./... | |
- uses: shogo82148/actions-goveralls@v1 | |
with: | |
path-to-profile: probe-cli.cov | |
parallel: true | |
finish_measuring_coverage: | |
needs: measure_coverage | |
runs-on: ubuntu-latest | |
steps: | |
- uses: shogo82148/actions-goveralls@v1 | |
with: | |
parallel-finished: true |