From 4ce302a4a6f345aaf258dc269599be890534b947 Mon Sep 17 00:00:00 2001 From: Utibeabasi Umanah Date: Thu, 18 Jan 2024 21:28:51 +0100 Subject: [PATCH] feat: add build and lint workflow --- .github/workflows/build-windhoek.yaml | 36 +++++++++++++++++++++++++++ 1 file changed, 36 insertions(+) create mode 100644 .github/workflows/build-windhoek.yaml diff --git a/.github/workflows/build-windhoek.yaml b/.github/workflows/build-windhoek.yaml new file mode 100644 index 0000000..433a6df --- /dev/null +++ b/.github/workflows/build-windhoek.yaml @@ -0,0 +1,36 @@ +name: Build and Lint Windhoek + +on: + push: + branches: + - main + pull_request: + branches: + - main + +jobs: + build: + runs-on: ubuntu-latest + steps: + - uses: actions/checkout@v2 + + - name: Setup Go + uses: actions/setup-go@v2 + with: + go-version: '1.21.5' # The Go version to download (if necessary) and use. + + - name: Install dependencies + run: | + go version + go mod tidy + + - name: Run build + run: go build . + + - name: Run vet + run: | + go vet . + - name: golangci-lint + uses: golangci/golangci-lint-action@v3 + with: + version: v1.54