Skip to content

aminueza/go-github-action

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

17 Commits
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

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

Releases

No releases published

Packages

No packages published