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.
 
 
 

49 lines
1.3 KiB

## 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/armen/jw
- go get -u forge.chapril.org/armen/memory
- go get -u forge.chapril.org/armen/model
- go get -u forge.chapril.org/armen/runner
- go get -u forge.chapril.org/armen/workers
- 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/errors
- go get -u forge.chapril.org/mls-361/jsonapi
- 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