Skip to content

Indexed funcs to apply #28

Indexed funcs to apply

Indexed funcs to apply #28

Workflow file for this run

name: Tests
on: [ push ]
jobs:
build:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v3
- name: Set up Go
uses: actions/setup-go@v4
with:
go-version: '1.21'
- 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
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/[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
github-token: "${{ secrets.GITHUB_TOKEN }}"