Skip to content

some small tests

some small tests #13

Workflow file for this run

name: tester-coverage
on:
push:
branches: ["main"]
paths:
- "**.go"
pull_request:
branches: ["main"]
paths:
- "**.go"
jobs:
coverage:
name: Test Coverage
runs-on: ubuntu-latest
timeout-minutes: 3
steps:
- uses: actions/checkout@v4
with:
fetch-depth: 1
- name: Setup Go
uses: actions/setup-go@v5
with:
go-version: "1.23"
- name: Tests Permissions
run: chmod +x ./.github/workflows/test.sh
- name: Tests
run: ./.github/workflows/test.sh
- name: Upload coverage to summary
run: |
echo "### Test Coverage" >> $GITHUB_STEP_SUMMARY
go tool cover -func=coverage.out | grep total | awk '{print $3}' >> $GITHUB_STEP_SUMMARY