Skip to content

Commit

Permalink
Add go github workflows
Browse files Browse the repository at this point in the history
  • Loading branch information
yhabteab committed Jan 22, 2024
1 parent 5a13b24 commit 4082c24
Showing 1 changed file with 29 additions and 0 deletions.
29 changes: 29 additions & 0 deletions .github/workflows/go.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,29 @@
name: Go

on:
push:
branches: [ main ]
pull_request: {}

jobs:
go:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- uses: actions/setup-go@v5
with:
go-version: stable

- name: Test
run: go test -v ./...
- name: Vet
run: go vet ./...
- name: Go linter
uses: golangci/golangci-lint-action@v3
with:
version: latest
only-new-issues: true

# Enable the gosec linter w/o having to create a .golangci.yml config
args: -E gosec
skip-cache: true

0 comments on commit 4082c24

Please sign in to comment.