Skip to content

Commit c36c3d2

Browse files
committed
Add tasks to build and run unit tests
Build is achieved with the command: task go:build Running tests is achieved with the command: task go:test
1 parent ddf7642 commit c36c3d2

File tree

1 file changed

+30
-0
lines changed

1 file changed

+30
-0
lines changed

Taskfile.yml

Lines changed: 30 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,30 @@
1+
# See: https://taskfile.dev/#/usage
2+
version: "3"
3+
4+
env:
5+
GOPATH: "$(echo $PWD)"
6+
7+
tasks:
8+
go:deps:
9+
desc: Install dependencies
10+
cmds:
11+
- go get github.com/arduino/arduino-modules/git
12+
- go get github.com/arduino/golang-concurrent-workers
13+
- go get github.com/blang/semver
14+
- go get github.com/google/go-github/github
15+
- go get github.com/stretchr/testify
16+
- go get github.com/vaughan0/go-ini
17+
18+
go:build:
19+
desc: Build the project
20+
deps:
21+
- task: go:deps
22+
cmds:
23+
- go build arduino.cc/repository/libraries-repository-engine
24+
25+
go:test:
26+
desc: Run unit tests
27+
deps:
28+
- task: go:deps
29+
cmds:
30+
- go test -v ./src/arduino.cc/repository/libraries/...

0 commit comments

Comments
 (0)