ci: add skeleton for sourcehut annotations

This commit adds the necessary task to the CI job to generate sourcehut
annotations as documented here:

https://man.sr.ht/git.sr.ht/annotations.md

Signed-off-by: Chris Waldon <christopher.waldon.dev@gmail.com>
This commit is contained in:
Chris Waldon
2020-03-14 10:28:45 -04:00
committed by Elias Naur
parent 5180bb0e1a
commit daecdcaabf
+7
View File
@@ -23,6 +23,8 @@ packages:
- wine
sources:
- https://git.sr.ht/~eliasnaur/gio
secrets:
- 0dd5efdf-400e-4735-8320-98b44844dfd0
environment:
GOFLAGS: -mod=readonly
PATH: /home/build/sdk/go/bin:/usr/bin
@@ -49,3 +51,8 @@ tasks:
- check_gofmt: |
cd gio
test -z "$(gofmt -s -l .)"
- annotate: |
go get git.sr.ht/~sircmpwn/annotatego
cd gio
~/go/bin/annotatego -v -T gioui.org... > annotations.json
../upload-annotations annotations.json eliasnaur gio