lukaszx0 / golang-test-annotations

A github action which annotates failed tests.

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

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.14.x ]

    runs-on: ubuntu-18.04

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

      - name: run tests
        run: go test -json ./... > test.json

      - name: Annotate tests
        if: always()
        uses: guyarb/golang-test-annoations@v0.3.0
        with:
          test-results: test.json

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.

License:MIT License


Languages

Language:JavaScript 100.0%