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 8e54551
Showing 1 changed file with 27 additions and 0 deletions.
27 changes: 27 additions & 0 deletions .github/workflows/go.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,27 @@
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
# Enable the gosec linter w/o having to create a .golangci.yml config
args: -E gosec
skip-cache: true

0 comments on commit 8e54551

Please sign in to comment.