From 4082c24f5c1720fda09a9f3d7220992b1eb036bf Mon Sep 17 00:00:00 2001 From: Yonas Habteab Date: Mon, 22 Jan 2024 11:17:47 +0100 Subject: [PATCH] Add go github workflows --- .github/workflows/go.yml | 29 +++++++++++++++++++++++++++++ 1 file changed, 29 insertions(+) create mode 100644 .github/workflows/go.yml diff --git a/.github/workflows/go.yml b/.github/workflows/go.yml new file mode 100644 index 00000000..ec8a8da9 --- /dev/null +++ b/.github/workflows/go.yml @@ -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