Skip to content

Commit

Permalink
feat: add build and lint workflow
Browse files Browse the repository at this point in the history
  • Loading branch information
utibeabasi6 authored Jan 18, 2024
1 parent 755fe7d commit 4ce302a
Showing 1 changed file with 36 additions and 0 deletions.
36 changes: 36 additions & 0 deletions .github/workflows/build-windhoek.yaml
Original file line number Diff line number Diff line change
@@ -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

0 comments on commit 4ce302a

Please sign in to comment.