Skip to content

Commit

Permalink
Add go github workflows
Browse files Browse the repository at this point in the history
  • Loading branch information
yhabteab authored and lippserd committed May 24, 2024
1 parent 1c4eebc commit 2b01345
Showing 1 changed file with 30 additions and 0 deletions.
30 changes: 30 additions & 0 deletions .github/workflows/go.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,30 @@
name: Go

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

jobs:
go:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4

- name: Set up Go
uses: actions/setup-go@v5
with:
go-version: stable
cache: false

- name: Lint
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

- name: Test
run: go test -v ./...

0 comments on commit 2b01345

Please sign in to comment.