GitHub Action for nao1215/hottest
You should set args
argument same as go test
command.
nao1215/actions-hottest
requires the permission to comment on pull requests in order to store test results as PR comments. Please enable the following settings:
- [GitHub Repository Top Page] -> [Settings] -> [Actions] -> [General] -> [Read and write permissions] = ON
name: SampleTest
on:
push:
jobs:
sample_test:
name: sample test
strategy:
matrix:
platform: [ubuntu-latest]
runs-on: ${{ matrix.platform }}
steps:
- uses: actions/checkout@v4
- uses: actions/setup-go@v4
with:
go-version: "1"
check-latest: true
- name: Download dependencies
run: go mod download
- uses: nao1215/actions-hottest@v1
with:
# This argument is same as `go test` command.
args: '-cover -coverpkg=./... -coverprofile=coverage.out ./...'
Important
Please remember to include 'go mod download' in the workflow. If you forget, the hottest command may experience long waiting times when running tests, and the tests may not complete.
The old PR comments created by hottest
will be deleted when creating a new PR comment.