Skip to content

Commit

Permalink
Added taskfile, use mod file for version
Browse files Browse the repository at this point in the history
  • Loading branch information
demeyerthom committed May 7, 2024
1 parent b32890f commit bc06fbe
Show file tree
Hide file tree
Showing 4 changed files with 27 additions and 41 deletions.
9 changes: 3 additions & 6 deletions .github/workflows/tests.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -27,17 +27,14 @@ jobs:
test:
runs-on: ubuntu-latest
strategy:
matrix:
go: [ '1.18' ]

steps:
- uses: actions/checkout@v2

- name: Set up Go ${{ matrix.go }}
- name: Set up Go
uses: actions/setup-go@v5
with:
go-version: ${{ matrix.go }}
go-version-file: 'go.mod'
cache: true

- name: golangci-lint
continue-on-error: true
Expand Down
34 changes: 0 additions & 34 deletions Makefile

This file was deleted.

24 changes: 24 additions & 0 deletions Taskfile.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,24 @@
version: '3'

tasks:
format:
cmds:
- go fmt ./...

test:
cmds:
- go test -v ./...

docs:
cmds:
- go generate

coverage-html:
cmds:
- go test -race -coverprofile=coverage.txt -covermode=atomic -coverpkg=./... ./...
- go tool cover -html=coverage.txt

coverage:
cmds:
- go test -race -coverprofile=coverage.txt -covermode=atomic -coverpkg=./... ./...
- go tool cover -func=coverage.txt
1 change: 0 additions & 1 deletion go.mod
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,6 @@ require (
github.com/Masterminds/sprig/v3 v3.2.2 // indirect
github.com/armon/go-radix v1.0.0 // indirect
github.com/bgentry/speakeasy v0.1.0 // indirect
github.com/davecgh/go-spew v1.1.1 // indirect
github.com/fatih/color v1.13.0 // indirect
github.com/golang/protobuf v1.5.2 // indirect
github.com/google/go-cmp v0.5.8 // indirect
Expand Down

0 comments on commit bc06fbe

Please sign in to comment.