Skip to content

docs(README): Update contributing guidelines #51

docs(README): Update contributing guidelines

docs(README): Update contributing guidelines #51

Workflow file for this run

name: Test
on:
push:
branches: [master]
pull_request:
jobs:
test:
name: Test
strategy:
fail-fast: false
matrix:
os: [ubuntu-latest]
go-version: [1.22.x]
runs-on: ${{ matrix.os }}
env:
COVERPROFILE: ./cover.out
COVERDIR: ${{ github.workspace }}/.coverage
steps:
- uses: actions/checkout@v4
- name: Set up Go
uses: actions/setup-go@v5
with:
go-version: ${{ matrix.go-version }}
- name: Test and Coverage
shell: bash
id: test
run: |
make test
echo "COVERAGE_FILES=$(find ${{ env.COVERDIR }} -type f | tr '\n' ',' | sed 's/,$//')" | tee -a $GITHUB_OUTPUT
- name: Upload coverage reports to Codecov
uses: codecov/[email protected]
with:
token: ${{ secrets.CODECOV_TOKEN }}
files: ${{ steps.test.outputs.COVERAGE_FILES }}
verbose: true