Skip to content

add code coverage

add code coverage #5

Workflow file for this run

name: Go Test
on:
pull_request:
branches:
- main
workflow_dispatch:
jobs:
test:
name: Test
runs-on: ubuntu-latest
steps:
- name: Checkout code
uses: actions/checkout@v2
- name: Set up Go
uses: actions/setup-go@v2
with:
go-version: 1.22
- name: chmod
run: chmod +x ./setup-test.sh
- name: setup tests
run: ./setup-test.sh
- name: Run tests
run: go test ./...
- name: Upload coverage reports to Codecov
uses: codecov/[email protected]
env:
fail_ci_if_error: true
CODECOV_TOKEN: ${{ secrets.CODECOV_TOKEN }}
slug: knbr13/gitcs