Skip to content

guyarb/golang-test-annotations

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

23 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

golang-test-annotations

A github action which annotates failed tests.

GitHub Annotations

An example run can be found here

How to use

Add to your workflow the following contents:

name: pr

on:
  pull_request:
    branches: [ '**' ]
  workflow_dispatch:
    branches: [ '**' ]

jobs:
  full_ci:
    strategy:
      matrix:
        go_version: [ 1.18.x ]

    runs-on: ubuntu-20.04

    steps:
      - name: checkout
        uses: actions/checkout@v2

      - name: Set up Go
        uses: actions/setup-go@v3
        with:
          go-version: ${{ matrix.go_version }}
        
      - name: run tests
        run: go test -json ./... > test.json

      - name: Annotate tests
        if: always()
        uses: guyarb/[email protected]
        with:
          test-results: test.json
          package-name: foobar # optional, if using custom package name, github.com/owner/repo stripped from the pathname by default

Development of this action

  1. Fork this repo.
  2. Create a branch with your feature/bugfix.
  3. Open a PR to me.

Issues

Please open issues for any bug or suggestion you have.

About

A github action which annotates failed tests.

Resources

License

Stars

Watchers

Forks

Packages

No packages published