https://github.com/aminueza/go-github-action
Template for GitHub Actions (GO language)
https://github.com/aminueza/go-github-action
github-actions github-ci go golang templates yaml
Last synced: 2 months ago
JSON representation
Template for GitHub Actions (GO language)
- Host: GitHub
- URL: https://github.com/aminueza/go-github-action
- Owner: aminueza
- License: mit
- Created: 2020-01-16T20:33:18.000Z (about 6 years ago)
- Default Branch: master
- Last Pushed: 2025-04-26T20:39:46.000Z (11 months ago)
- Last Synced: 2025-10-19T18:51:14.763Z (5 months ago)
- Topics: github-actions, github-ci, go, golang, templates, yaml
- Language: Shell
- Homepage:
- Size: 26.4 KB
- Stars: 2
- Watchers: 2
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# go-github-action tools
Gitbub actions templates to:
- [Errcheck](https://github.com/kisielk/errcheck) - Program for checking for unchecked errors in go programs.
- [Fmt](https://cs.opensource.google/go/go) - Check the GO unformated files.
- [Gosec](https://github.com/securego/gosec) - Inspects source code for security problems by scanning the Go AST.
- [Vet](https://pkg.go.dev/cmd/vet) - Examines Go source code and reports suspicious constructs.
## How to use
You can run these tasks as a GitHub action as follows:
```sh
name: Github Actions
on:
push:
branches:
- master
- main
jobs:
checkup:
name: Checkup
runs-on: ubuntu-latest
env:
GOARCH: amd64
GOOS: linux
steps:
- name: Check out the repository
uses: actions/checkout@v2
- name: Run fmt
uses: aminueza/go-github-action/fmt@master
- name: Run sec
uses: aminueza/go-github-action/sec@master
with:
path: minio/...
- name: Run vet
uses: aminueza/go-github-action/vet@master
- name: Run errcheck
uses: aminueza/go-github-action/errcheck@master
with:
path: minio/...
```