From af3a6271d672b13a8e2bc99e88ec6469a089a3e9 Mon Sep 17 00:00:00 2001 From: 6543 <6543@obermui.de> Date: Tue, 14 Jun 2022 19:07:29 +0200 Subject: [PATCH] use Justfile in ci too --- .woodpecker.yml | 23 ++++++++++++++--------- 1 file changed, 14 insertions(+), 9 deletions(-) diff --git a/.woodpecker.yml b/.woodpecker.yml index e7fa66a..5a8dd29 100644 --- a/.woodpecker.yml +++ b/.woodpecker.yml @@ -9,6 +9,7 @@ pipeline: lint: image: golangci/golangci-lint:latest + group: compliant pull: true commands: - go version @@ -16,20 +17,24 @@ pipeline: - "[ $(gofumpt -extra -l . | wc -l) != 0 ] && { echo 'code not formated'; exit 1; }" - golangci-lint run --timeout 5m --build-tags integration - test: - image: golang:1.18 - commands: - - go test -race codeberg.org/codeberg/pages/server/... - build: - image: golang:1.18 + group: compliant + image: a6543/golang_just commands: - - go build + - go version + - just build + + test: + image: a6543/golang_just + group: test + commands: + - just test integration-tests: - image: golang:1.18 + image: a6543/golang_just + group: test commands: - - go test -race -tags integration codeberg.org/codeberg/pages/integration/... + - just integration environment: - ACME_API=https://acme.mock.directory - PAGES_DOMAIN=localhost.mock.directory