mirror of
https://git.sr.ht/~yotam/shavit
synced 2024-05-20 13:16:02 +02:00
Add CI with linting, testing and annotations
This commit is contained in:
parent
46f84de73a
commit
6318908fbc
|
@ -0,0 +1,26 @@
|
|||
image: fedora/latest
|
||||
packages:
|
||||
- go
|
||||
sources:
|
||||
- https://git.sr.ht/~yotam/go-gemini-server
|
||||
- https://git.sr.ht/~sircmpwn/annotatego
|
||||
secrets:
|
||||
- f43da1db-697d-4101-8607-e96f574b035a
|
||||
tasks:
|
||||
- lint: |
|
||||
cd go-gemini-server
|
||||
go vet
|
||||
- test: |
|
||||
cd go-gemini-server
|
||||
go test
|
||||
- build: |
|
||||
cd go-gemini-server
|
||||
go build
|
||||
- annotatego: |
|
||||
cd annotatego
|
||||
go build
|
||||
sudo cp annotatego /usr/bin/
|
||||
- annotate: |
|
||||
cd go-gemini-server
|
||||
annotatego -v git.sr.ht/~yotam/go-gemini-server... >annotations.json
|
||||
~/upload-annotations annotations.json yotam go-gemini-server
|
Loading…
Reference in New Issue