Skip to content

Add description edit area #21

Add description edit area

Add description edit area #21

Workflow file for this run

# This workflow will build a golang project
# For more information see: https://docs.github.com/en/actions/automating-builds-and-tests/building-and-testing-go
name: Go
on:
push:
branches: [ "master" ]
pull_request:
branches: [ "master" ]
jobs:
tests:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- name: Set up Go
uses: actions/setup-go@v4
with:
go-version: '1.22.3'
- name: Set up static analysis
run: |
sudo apt update
go install honnef.co/go/tools/cmd/staticcheck@latest
- name: Verify
run: make
- name: Check test coverage
id: coverage
uses: vladopajic/go-test-coverage@v2
continue-on-error: true
with:
profile: cover.out
local-prefix: github.com/org/project
threshold-file: 100
threshold-package: 100
threshold-total: 100
- name: Make coverage badge
uses: action-badges/core@0.2.2
if: contains(github.ref, 'master')
with:
label: Coverage
message: ${{ steps.coverage.outputs.badge-text }}
message-color: ${{ steps.coverage.outputs.badge-color }}
file-name: coverage.svg
badge-branch: badges
github-token: "${{ secrets.GITHUB_TOKEN }}"