Skip to content

Latest commit

 

History

History
43 lines (38 loc) · 1.16 KB

README.md

File metadata and controls

43 lines (38 loc) · 1.16 KB

go-github-action tools

Gitbub actions templates to:

  • Errcheck - Program for checking for unchecked errors in go programs.
  • Fmt - Check the GO unformated files.
  • Gosec - Inspects source code for security problems by scanning the Go AST.
  • Vet - Examines Go source code and reports suspicious constructs.

How to use

You can run these tasks as a GitHub action as follows:

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/...