Skip to content

Commit

Permalink
add linting tasks and move files to ./schedule
Browse files Browse the repository at this point in the history
  • Loading branch information
firminochangani committed Jan 20, 2024
1 parent 5a54e8c commit fb96604
Show file tree
Hide file tree
Showing 7 changed files with 21 additions and 3 deletions.
2 changes: 1 addition & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,7 @@ import (
)

func main() {
ctx, cancel := context.WithTimeout(context.Background(), time.Second*5)
ctx, cancel := context.WithCancel(context.Background())
defer cancel()

s := schedule.New()
Expand Down
18 changes: 18 additions & 0 deletions Taskfile.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,18 @@
version: 3

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

lint:docker:
cmds:
- docker run --rm -v $(pwd):/app -w /app golangci/golangci-lint:v1.54.0 golangci-lint run -v

lint:
cmds:
- golangci-lint run

lint:fix:
cmds:
- golangci-lint run --fix
2 changes: 1 addition & 1 deletion examples/main.go
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@ import (
"fmt"
"time"

"github.com/flowck/schedule"
"github.com/flowck/schedule/schedule"
)

func main() {
Expand Down
File renamed without changes.
File renamed without changes.
File renamed without changes.
2 changes: 1 addition & 1 deletion schedule_test.go → schedule/schedule_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@ import (
"github.com/stretchr/testify/assert"
"github.com/stretchr/testify/require"

"github.com/flowck/schedule"
"github.com/flowck/schedule/schedule"
)

func TestSchedule(t *testing.T) {
Expand Down

0 comments on commit fb96604

Please sign in to comment.