forked from coop-cloud/abra
48 lines
1010 B
YAML
48 lines
1010 B
YAML
---
|
|
kind: pipeline
|
|
name: coopcloud.tech/abra
|
|
steps:
|
|
- name: make check
|
|
image: golang:1.16
|
|
commands:
|
|
- make check
|
|
|
|
- name: make static
|
|
image: golang:1.16
|
|
ignore: true # until we decide we all want this check
|
|
environment:
|
|
STATIC_CHECK_URL: honnef.co/go/tools/cmd/staticcheck
|
|
STATIC_CHECK_VERSION: v0.2.0
|
|
commands:
|
|
- go install $STATIC_CHECK_URL@$STATIC_CHECK_VERSION
|
|
- make static
|
|
|
|
- name: make build
|
|
image: golang:1.16
|
|
commands:
|
|
- make build
|
|
|
|
- name: make test
|
|
image: golang:1.16
|
|
commands:
|
|
- make test
|
|
|
|
- name: notify on failure
|
|
image: plugins/matrix
|
|
settings:
|
|
homeserver: https://matrix.autonomic.zone
|
|
roomid: "IFazIpLtxiScqbHqoa:autonomic.zone"
|
|
userid: "@autono-bot:autonomic.zone"
|
|
accesstoken:
|
|
from_secret: autono_bot_access_token
|
|
depends_on:
|
|
- make check
|
|
- make build
|
|
- make test
|
|
when:
|
|
status:
|
|
- failure
|
|
trigger:
|
|
branch:
|
|
- main
|