Update front end with newest version #22
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: Go Code Coverage Test and Badge | |
on: | |
pull_request: | |
branches: | |
- main | |
jobs: | |
badge: | |
runs-on: ubuntu-latest | |
steps: | |
- uses: actions/checkout@v3 | |
- uses: actions/setup-go@v3 | |
- name: generate test generate coverage | |
run: go test ./... -coverprofile=./cover.out | |
- name: check test coverage | |
id: coverage ## this step must have id | |
uses: vladopajic/go-test-coverage@v2 | |
with: | |
profile: cover.out | |
local-prefix: github.com/org/project | |
threshold-file: 0 | |
threshold-package: 0 | |
threshold-total: 0 | |
- name: make coverage badge | |
uses: action-badges/[email protected] | |
# if: contains(github.ref, 'main') | |
with: | |
label: coverage | |
message: ${{ steps.coverage.outputs.badge-text }} | |
message-color: ${{ steps.coverage.outputs.badge-color }} | |
file-name: coverage.svg | |
badge-branch: badges ## orphan branch where badge will be committed | |
github-token: "${{ secrets.GITHUB_TOKEN }}" |