actions

package module
v1.10.0 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Aug 15, 2025 License: MIT Imports: 1 Imported by: 0

README

shogo82148/actions-goveralls

test Coverage Status

Coveralls GitHub Action with Go integration powered by mattn/goveralls.

SYNOPSIS

Basic Usage

Add the following step snippet to your workflows.

- uses: actions/checkout@v4

- uses: actions/setup-go@v5
  with:
    go-version: "1.21"
- run: go test -v -coverprofile=profile.cov ./...

- uses: shogo82148/actions-goveralls@v1
  with:
    path-to-profile: profile.cov
Parallel Job Example

actions-goveralls supports Parallel Builds Webhook. Here is an example of matrix builds.

on: [push, pull_request]
jobs:
  test:
    runs-on: ubuntu-latest
    strategy:
      fail-fast: false
      matrix:
        go:
          - "1.21"
          - "1.20"
          - "1.19"
          - "1.18"
          - "1.17"
          - "1.16"
          - "1.15"
          - "1.14"
          - "1.13"
          - "1.12"
          - "1.11"

    steps:
      - uses: actions/setup-go@v5
        with:
          go-version: ${{ matrix.go }}
      - uses: actions/checkout@v4
      - run: go test -v -coverprofile=profile.cov ./...

      - name: Send coverage
        uses: shogo82148/actions-goveralls@v1
        with:
          path-to-profile: profile.cov
          flag-name: Go-${{ matrix.go }}
          parallel: true

  # notifies that all test jobs are finished.
  finish:
    needs: test
    runs-on: ubuntu-latest
    steps:
      - uses: shogo82148/actions-goveralls@v1
        with:
          parallel-finished: true

Documentation

Overview

Package actions is used for testing of the actions-goveralls.

Index

Examples

Constants

This section is empty.

Variables

This section is empty.

Functions

func Run

func Run()

Run runs some awesome code

Example
actions.Run()
Output:

some awesome code here

Types

This section is empty.

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL