Page MenuHomePhorge

No OneTemporary

Size
2 KB
Referenced Files
None
Subscribers
None
diff --git a/.woodpecker/lint.yaml b/.woodpecker/lint.yaml
new file mode 100644
index 0000000..9e43750
--- /dev/null
+++ b/.woodpecker/lint.yaml
@@ -0,0 +1,42 @@
+when:
+ - event: pull_request
+ path: [ "**/*.ex", "**/*.exs", "mix.lock", ".woodpecker/**" ]
+ - event: push
+ branch: ${CI_REPO_DEFAULT_BRANCH}
+ path: [ "**/*.ex", "**/*.exs", "mix.lock", ".woodpecker/**" ]
+
+labels:
+ platform: linux/amd64
+
+variables:
+ script_file_entrypoint: &script_file_entrypoint
+ - /bin/sh
+ - -c
+ - 'printf "%s" "$CI_SCRIPT" | base64 -d > /tmp/ci-script.sh && /bin/sh -xe /tmp/ci-script.sh'
+
+steps:
+ mix-format:
+ image: elixir:1.17-alpine
+ entrypoint: *script_file_entrypoint
+ commands:
+ - apk add --no-cache build-base git
+ - mix local.hex --force
+ - mix local.rebar --force
+ - mix deps.get --only dev
+ - |
+ if ! mix format --check-formatted; then
+ touch fail.stamp
+ exit 1
+ fi
+
+ ensure-status:
+ image: elixir:1.17-alpine
+ entrypoint: *script_file_entrypoint
+ commands: |
+ if test -f fail.stamp; then
+ echo "One or more previous steps failed. Failing workflow..."
+ exit 1
+ else
+ echo "All steps passed"
+ exit 0
+ fi
diff --git a/.woodpecker/unit-testing.yaml b/.woodpecker/unit-testing.yaml
new file mode 100644
index 0000000..240904d
--- /dev/null
+++ b/.woodpecker/unit-testing.yaml
@@ -0,0 +1,32 @@
+when:
+ - event: pull_request
+ path: [ "**/*.ex", "**/*.exs", "mix.lock", "src/**", "Makefile", ".woodpecker/**" ]
+ - event: push
+ branch: ${CI_REPO_DEFAULT_BRANCH}
+ path: [ "**/*.ex", "**/*.exs", "mix.lock", "src/**", "Makefile", ".woodpecker/**" ]
+
+depends_on:
+ - lint
+
+labels:
+ platform: linux/amd64
+
+variables:
+ script_file_entrypoint: &script_file_entrypoint
+ - /bin/sh
+ - -c
+ - 'printf "%s" "$CI_SCRIPT" | base64 -d > /tmp/ci-script.sh && /bin/sh -xe /tmp/ci-script.sh'
+
+steps:
+ unit-testing:
+ image: elixir:1.17-alpine
+ entrypoint: *script_file_entrypoint
+ environment:
+ MIX_ENV: test
+ commands:
+ - apk add --no-cache build-base git
+ - rm -f priv/captcha _build/test/lib/captcha/priv/captcha
+ - mix local.hex --force
+ - mix local.rebar --force
+ - mix deps.get
+ - mix test --trace --preload-modules --cover

File Metadata

Mime Type
text/x-diff
Expires
Sun, Aug 9, 4:16 AM (1 d, 14 h)
Storage Engine
blob
Storage Format
Raw Data
Storage Handle
1722826
Default Alt Text
(2 KB)

Event Timeline