An open API service indexing awesome lists of open source software.

https://github.com/open-turo/actions-go

GitHub Actions for Golang repositories
https://github.com/open-turo/actions-go

action actions gha github go golang

Last synced: 6 months ago
JSON representation

GitHub Actions for Golang repositories

Awesome Lists containing this project

README

          

# `open-turo/actions-go`

GitHub Actions for `golang` based repositories. These rely on the other actions present in [open-turo](https://github.com/open-turo).

[![Release](https://img.shields.io/github/v/release/open-turo/actions-go)](https://github.com/open-turo/actions-go/releases/)
[![Tests pass/fail](https://img.shields.io/github/workflow/status/open-turo/actions-go/CI)](https://github.com/open-turo/actions-go/actions/)
[![License](https://img.shields.io/github/license/open-turo/actions-go)](./LICENSE)
[![Contributions welcome](https://img.shields.io/badge/contributions-welcome-brightgreen.svg)](https://github.com/dwyl/esta/issues)
![CI](https://github.com/open-turo/actions-go/actions/workflows/release.yaml/badge.svg)
[![semantic-release: angular](https://img.shields.io/badge/semantic--release-angular-e10079?logo=semantic-release)](https://github.com/semantic-release/semantic-release)
[![Conventional commits](https://img.shields.io/badge/conventional%20commits-1.0.2-%23FE5196?logo=conventionalcommits&logoColor=white)](https://conventionalcommits.org)
[![Join us!](https://img.shields.io/badge/Turo-Join%20us%21-593CFB.svg)](https://turo.com/jobs)

## Actions

### action: [`lint`](./lint)

Lint will run pre-commit linters against the consumer repository, optionally checking out, and installing golang and any other required tools with [action-setup-tools](https://github.com/open-turo/action-setup-tools).

See usage [here](./lint/README.md#usage).

Documentation is found [here](./lint/README.md).

### action: [`release`](./release)

Release will optionally checkout the consumer repository and attempt a [Semantic Release](https://semantic-release.gitbook.io/semantic-release/usage/configuration) using the root level configuration file (e.g. `.releaserc.json`) indicating branches and plugins to use to facilitate the release. [GoReleaser](https://goreleaser.com/) will be used to perform the actual release.

See usage [here](./release/README.md#usage).

Documentation is found [here](./release/README.md).

### action: [`prerelease`](./prerelease)

Pre-release will perform the same steps as in the [`release`](./release) action but will run [GoReleaser](https://goreleaser.com/) to generate a [snapshot](https://goreleaser.com/customization/snapshots/?h=snapshot) release.

See usage [here](./prerelease/README.md#usage).

Documentation is found [here](./prerelease/README.md).

### action: [`test`](./test)

Executes golang unit tests that exist anywhere within the consumer repository and reports test results and coverage metrics as well. [action-setup-tools](https://github.com/open-turo/action-setup-tools) will be used to install golang, honoring the version information found in the `.go-version` file found in the root level of the consumer repository.

See usage [here](./test/README.md#usage).

Documentation is found [here](./test/README.md).

## Get Help

Each Action has a detailed README for how to use it as referenced above. Please review Issues, post new Issues against this repository as needed.

## Contributions

Please see [here](https://github.com/open-turo/contributions) for guidelines on how to contribute to this project.

[version-image]: https://img.shields.io/github/package-json/v/open-turo/actions-go.svg
[workflows-badge-image]: https://github.com/cycjimmy/semantic-release-action/workflows/Test%20Release/badge.svg
[release-date-image]: https://img.shields.io/github/release-date/open-turo/actions-go.svg
[release-url]: https://github.com/cycjimmy/semantic-release-action/releases
[semantic-image]: https://img.shields.io/badge/%20%20%F0%9F%93%A6%F0%9F%9A%80-semantic--release-e10079.svg
[semantic-url]: https://github.com/semantic-release/semantic-release
[license-image]: https://img.shields.io/npm/l/@cycjimmy/semantic-release-action.svg
[license-url]: https://github.com/cycjimmy/semantic-release-action/blob/master/LICENSE
[changelog-url]: https://github.com/cycjimmy/semantic-release-action/blob/master/docs/CHANGELOG.md
[github-packages-registry]: https://github.com/features/packages