Skip to content

docs: update README and add examples for Equal, LoadString, and LoadT… #10

docs: update README and add examples for Equal, LoadString, and LoadT…

docs: update README and add examples for Equal, LoadString, and LoadT… #10

Workflow file for this run

name: Coverage
on:
push:
branches:
- main
tags:
- 'v*'
pull_request:
branches:
- main
permissions:
contents: read
concurrency:
group: coverage-${{ github.ref }}
cancel-in-progress: true
jobs:
coverage:
name: Coverage
runs-on: ubuntu-latest
timeout-minutes: 15
steps:
- name: Checkout
uses: actions/checkout@v6
with:
fetch-depth: 0
- name: Install mise
uses: jdx/mise-action@e6a8b3978addb5a52f2b4cd9d91eafa7f0ab959d # v4.2.0
- name: Cache Go modules and build
uses: actions/cache@v4
with:
path: |
~/go/pkg/mod
~/.cache/go-build
key: go-${{ runner.os }}-${{ hashFiles('**/go.sum') }}
restore-keys: go-${{ runner.os }}-
- name: Download Go dependencies
run: go mod download
- name: Run tests with coverage
run: make cover
- name: Upload coverage to Codecov
uses: codecov/codecov-action@v5
with:
files: coverage.out
# Fork PRs upload tokenlessly, which can be flaky; don't fail their CI.
fail_ci_if_error: ${{ github.event_name != 'pull_request' }}
env:
CODECOV_TOKEN: ${{ secrets.CODECOV_TOKEN }}