Floatingghost
ae19fd90c9
All checks were successful
ci/woodpecker/pr/lint Pipeline was successful
ci/woodpecker/pr/test Pipeline was successful
ci/woodpecker/pr/build-amd64 Pipeline was successful
ci/woodpecker/pr/build-arm64 Pipeline was successful
ci/woodpecker/pr/docs Pipeline was successful
ci/woodpecker/push/lint Pipeline was successful
ci/woodpecker/push/test Pipeline was successful
ci/woodpecker/push/build-amd64 Pipeline was successful
ci/woodpecker/push/build-arm64 Pipeline was successful
ci/woodpecker/push/docs Pipeline was successful
56 lines
1.2 KiB
YAML
56 lines
1.2 KiB
YAML
labels:
|
|
platform: linux/amd64
|
|
|
|
variables:
|
|
- &scw-secrets
|
|
- SCW_ACCESS_KEY
|
|
- SCW_SECRET_KEY
|
|
- SCW_DEFAULT_ORGANIZATION_ID
|
|
- &setup-hex "mix local.hex --force && mix local.rebar --force"
|
|
- &on-release
|
|
when:
|
|
event:
|
|
- push
|
|
- tag
|
|
branch:
|
|
- develop
|
|
- stable
|
|
- refs/tags/v*
|
|
- refs/tags/stable-*
|
|
- &on-stable
|
|
when:
|
|
event:
|
|
- push
|
|
- tag
|
|
branch:
|
|
- stable
|
|
- refs/tags/stable-*
|
|
- &on-point-release
|
|
when:
|
|
event:
|
|
- push
|
|
branch:
|
|
- develop
|
|
- stable
|
|
- &on-pr-open
|
|
when:
|
|
event:
|
|
- pull_request
|
|
|
|
- &tag-build "export BUILD_TAG=$${CI_COMMIT_TAG:-\"$CI_COMMIT_BRANCH\"} && export PLEROMA_BUILD_BRANCH=$BUILD_TAG"
|
|
|
|
- &clean "(rm -rf release || true) && (rm -rf _build || true) && (rm -rf /root/.mix)"
|
|
- &mix-clean "mix deps.clean --all && mix clean"
|
|
|
|
steps:
|
|
lint:
|
|
image: akkoma/ci-base:1.16-otp26
|
|
<<: *on-pr-open
|
|
environment:
|
|
MIX_ENV: test
|
|
commands:
|
|
- mix local.hex --force
|
|
- mix local.rebar --force
|
|
- mix deps.get
|
|
- mix compile
|
|
- mix format --check-formatted
|