Jobs & Workflows https://armen.surge.sh
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

44 lines
1013 B

## https://taskfile.dev
##---------------------
version: '3'
vars:
VERSION: 0.0.0
BUILTAT:
sh: date +%s
LDFLAGS: -s -w -X 'main._version={{.VERSION}}' -X 'main._builtAt={{.BUILTAT}}'
tasks:
update:
cmds:
- go get -u forge.chapril.org/mls-361/application
- go get -u forge.chapril.org/mls-361/crypto
- go get -u forge.chapril.org/mls-361/failure
- go get -u forge.chapril.org/mls-361/logger
- go get -u forge.chapril.org/mls-361/uuid
- go mod tidy
lint:
cmds:
- golangci-lint run
test:
cmds:
- go test -cover -v ./...
build:
cmds:
- go build -ldflags "{{.LDFLAGS}}" -o $GOPATH/bin/armen ./cmd/main.go
default:
cmds:
- task: lint
- task: test
- task: build
git:
cmds:
- git add .
- git commit -m "En cours de développement"
- git push