diff options
| author | Dawid Rycerz <dawid@rycerz.xyz> | 2025-03-23 17:11:39 +0100 |
|---|---|---|
| committer | Dawid Rycerz <dawid@rycerz.xyz> | 2025-04-05 21:16:51 +0200 |
| commit | 0ab2e5ba2b0631b28b5b1405559237b3913c878f (patch) | |
| tree | 791cea788b0a62bc483d0041fbd0c655d2ad49e8 /.woodpecker/lint.yml | |
feat: initialize Phoenix application for weather alerts
This commit sets up the initial Silmataivas project structure, including: Phoenix web framework configuration, database models for users and locations, weather polling service, notification system, Docker and deployment configurations, CI/CD pipeline setup
Diffstat (limited to '.woodpecker/lint.yml')
| -rw-r--r-- | .woodpecker/lint.yml | 38 |
1 files changed, 38 insertions, 0 deletions
diff --git a/.woodpecker/lint.yml b/.woodpecker/lint.yml new file mode 100644 index 0000000..bb320fe --- /dev/null +++ b/.woodpecker/lint.yml @@ -0,0 +1,38 @@ +when: + event: pull_request +steps: + - name: validate-commit-message + image: alpine:latest + commands: + - apk add --no-cache grep git + - | + echo "Validating commit message format..." + COMMIT_MSG=$(git log -1 --pretty=%B) + if ! echo "$COMMIT_MSG" | grep -qE "^(feat|fix|docs|style|refactor|perf|test|chore|ci)(\([a-z0-9-]+\))?(!)?: .+"; then + echo "Error: Commit message does not follow conventional commits format." + echo "Expected format: type(scope): description" + echo "Example: feat(auth): add user authentication" + exit 1 + fi + when: + event: + - pull_request + + - name: hadolint + image: hadolint/hadolint:latest-debian + commands: + - hadolint Dockerfile + when: + event: + - pull_request + + - name: elixir-format + image: hexpm/elixir:1.18.3-erlang-25.0.4-debian-bookworm-20250317-slim + commands: + - mix local.hex --force + - mix local.rebar --force + - mix deps.get + - mix format --check-formatted + when: + event: + - pull_request |
