ci: updated build and lint workflows (#152)

This commit is contained in:
Henrique Dias
2024-07-21 19:43:30 +02:00
committed by GitHub
parent 9433dbd452
commit 6f4be12e8c
5 changed files with 41 additions and 5 deletions
+17
View File
@@ -0,0 +1,17 @@
name: Build
on:
push:
tags:
- v*
branches:
- main
pull_request:
jobs:
build:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- uses: actions/setup-go@v5
with:
go-version: "1.22.x"
- run: go build .
+19
View File
@@ -0,0 +1,19 @@
name: Lint
on:
push:
tags:
- v*
branches:
- main
pull_request:
jobs:
lint:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- uses: actions/setup-go@v5
with:
go-version: "1.22.x"
- uses: golangci/golangci-lint-action@v6
with:
version: "v1.59"