Skip to content

nao1215/actions-hottest

Use this GitHub action with your project
Add this Action to an existing workflow or create a new one
View on Marketplace

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

40 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

actions-hottest - GitHub Actions for hottest

:octocat: GitHub Action for nao1215/hottest

Usage: sample workflow

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.

Result

The old PR comments created by hottest will be deleted when creating a new PR comment.

Success case

success

github-actions-success

Failure case

failure

github-actions-fail