mirror of
https://git.sr.ht/~yotam/shavit
synced 2024-05-09 07:16:02 +02:00
32 lines
743 B
YAML
32 lines
743 B
YAML
image: fedora/latest
|
|
packages:
|
|
- go
|
|
- tar
|
|
sources:
|
|
- https://git.sr.ht/~yotam/shavit
|
|
- https://git.sr.ht/~sircmpwn/annotatego
|
|
secrets:
|
|
- f43da1db-697d-4101-8607-e96f574b035a
|
|
tasks:
|
|
- lint: |
|
|
curl -sfL https://raw.githubusercontent.com/golangci/golangci-lint/master/install.sh| sh -s -- -b $(go env GOPATH)/bin v1.21.0
|
|
go get honnef.co/go/tools/cmd/staticcheck
|
|
cd shavit
|
|
go vet
|
|
~/go/bin/staticcheck
|
|
~/go/bin/golangci-lint run
|
|
- test: |
|
|
cd shavit
|
|
go test
|
|
- build: |
|
|
cd shavit
|
|
go build
|
|
- annotatego: |
|
|
cd annotatego
|
|
go build
|
|
sudo cp annotatego /usr/bin/
|
|
- annotate: |
|
|
cd shavit
|
|
annotatego -v git.sr.ht/~yotam/shavit... >annotations.json
|
|
~/upload-annotations annotations.json yotam shavit
|