Skip to content

Update front end with newest version #22

Update front end with newest version

Update front end with newest version #22

Workflow file for this run

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