refactor: code cleanup, stricter config validation (#155)

This commit is contained in:
Henrique Dias
2024-07-21 20:52:50 +02:00
committed by GitHub
parent 46d54e4465
commit c125bedae1
19 changed files with 683 additions and 654 deletions
+2
View File
@@ -1,4 +1,5 @@
name: Build
on:
push:
tags:
@@ -6,6 +7,7 @@ on:
branches:
- main
pull_request:
jobs:
build:
runs-on: ubuntu-latest
+2
View File
@@ -1,4 +1,5 @@
name: Lint
on:
push:
tags:
@@ -6,6 +7,7 @@ on:
branches:
- main
pull_request:
jobs:
lint:
runs-on: ubuntu-latest
+21
View File
@@ -0,0 +1,21 @@
name: Test
on:
push:
tags:
- v*
branches:
- main
pull_request:
jobs:
test:
name: test
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- uses: actions/setup-go@v5
with:
go-version: "1.22.x"
- name: Run test with coverage
run: go test -race -coverprofile=coverage.txt -covermode=atomic ./...