Skip to content

Commit

Permalink
Merge pull request #8 from Icinga/github-actions
Browse files Browse the repository at this point in the history
Add go github workflows
  • Loading branch information
lippserd authored Jan 22, 2024
2 parents 5a13b24 + 41c8744 commit a39ed01
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 a39ed01

Please sign in to comment.