fixup! build: add woodpecker
This commit is contained in:
parent
586a376405
commit
3e2954f33b
@ -1,24 +1,50 @@
|
|||||||
pipeline:
|
pipeline:
|
||||||
lint:
|
lint:
|
||||||
image: alpine:3.21
|
image: alpine:3.19
|
||||||
commands:
|
commands:
|
||||||
- apk add --no-cache shellcheck git
|
- apk add --no-cache shellcheck git
|
||||||
- git clone ${CI_REPO_REMOTE} .
|
- git clone ${CI_REPO_REMOTE} .
|
||||||
- shellcheck $(find . -type f -name "*.sh")
|
- shellcheck $(find . -type f -name "*.sh")
|
||||||
|
|
||||||
build:
|
setup:
|
||||||
image: ubuntu:24.04
|
image: ubuntu:24.04
|
||||||
depends_on:
|
depends_on:
|
||||||
- lint
|
- lint
|
||||||
environment:
|
|
||||||
DOCKER_API_VERSION: "1.45"
|
|
||||||
commands:
|
commands:
|
||||||
- apt-get update -y
|
- apt-get update -y
|
||||||
- apt-get install -y --no-install-recommends curl sudo gnupg2 libx11-dev nscd
|
- apt-get install -y --no-install-recommends curl sudo gnupg2 libx11-dev nscd
|
||||||
- curl https://mise.run | sh
|
- curl https://mise.run | sh
|
||||||
- export PATH="$HOME/.local/share/mise/bin:$HOME/.local/share/mise/shims:$PATH"
|
- export PATH="$HOME/.local/share/mise/bin:$HOME/.local/share/mise/shims:$PATH"
|
||||||
- mise install
|
- mise install
|
||||||
|
|
||||||
|
golangci-lint:
|
||||||
|
image: golangci/golangci-lint:v1.64.2
|
||||||
|
depends_on:
|
||||||
|
- setup
|
||||||
|
commands:
|
||||||
- git clone ${CI_REPO_REMOTE} .
|
- git clone ${CI_REPO_REMOTE} .
|
||||||
|
- golangci-lint run ./...
|
||||||
|
|
||||||
|
check_gomod:
|
||||||
|
image: ubuntu:24.04
|
||||||
|
depends_on:
|
||||||
|
- golangci-lint
|
||||||
|
commands:
|
||||||
|
- export PATH="$HOME/.local/share/mise/bin:$HOME/.local/share/mise/shims:$PATH"
|
||||||
- mise run check_gomod
|
- mise run check_gomod
|
||||||
|
|
||||||
|
test:
|
||||||
|
image: ubuntu:24.04
|
||||||
|
depends_on:
|
||||||
|
- check_gomod
|
||||||
|
commands:
|
||||||
|
- export PATH="$HOME/.local/share/mise/bin:$HOME/.local/share/mise/shims:$PATH"
|
||||||
- mise run test_ci
|
- mise run test_ci
|
||||||
|
|
||||||
|
test_integration:
|
||||||
|
image: ubuntu:24.04
|
||||||
|
depends_on:
|
||||||
|
- test
|
||||||
|
commands:
|
||||||
|
- export PATH="$HOME/.local/share/mise/bin:$HOME/.local/share/mise/shims:$PATH"
|
||||||
- mise run test_integration_ci
|
- mise run test_integration_ci
|
||||||
|
Loading…
x
Reference in New Issue
Block a user