~xenrox/ntfy-alertmanager

b3d5045ca7d4e62ff2ea853ced774f81d8d1c63a — Thorben Günther a month ago a4e11fc
Try out just
2 files changed, 23 insertions(+), 6 deletions(-)

M .build.yml
A .justfile
M .build.yml => .build.yml +5 -6
@@ 3,6 3,7 @@ packages:
    - docker
    - docker-buildx
    - go
    - just
    - revive
    - staticcheck
secrets:


@@ 12,18 13,16 @@ sources:
tasks:
    - test: |
          cd ntfy-alertmanager
          go test -v ./...
          just test
    - lint: |
          cd ntfy-alertmanager
          go vet ./...
          staticcheck ./...
          revive ./...
          just lint
    - build: |
          cd ntfy-alertmanager
          go build
          just build
    - gofmt: |
          cd ntfy-alertmanager
          test -z $(gofmt -l .)
          just gofmt
    - dev-image: |
          cd ntfy-alertmanager/docker
          if [ "$BUILD_SUBMITTER" != "git.sr.ht" ] || [ "$(git rev-parse master)" != "$(git rev-parse HEAD)" ]

A .justfile => .justfile +18 -0
@@ 0,0 1,18 @@
test:
    go test -v ./...

lint:
    go vet ./...
    staticcheck ./...
    revive ./...

gofmt:
    gofmt -l .
    test -z $(gofmt -l .)

build:
    go build

upgrade-deps:
    go get -u ./...
    go mod tidy