diff --git a/.woodpecker.yml b/.woodpecker.yml index 92bf028..ae3a926 100644 --- a/.woodpecker.yml +++ b/.woodpecker.yml @@ -8,12 +8,16 @@ steps: commands: - pip install ruff==0.15.10 --quiet - ruff check services/ + when: + event: [push, pull_request] test-python: image: python:3.12-slim commands: - pip install -r requirements.txt --quiet - pytest tests/ -x --tb=short -q + when: + event: [push, pull_request] test-frontend: image: node:24-slim @@ -21,6 +25,8 @@ steps: - cd frontend - npm ci - npx vitest --run + when: + event: [push, pull_request] build-scheduler: image: woodpeckerci/plugin-docker-buildx @@ -337,6 +343,9 @@ steps: mirror-github: image: alpine/git + environment: + GITHUB_SSH_KEY: + from_secret: github_ssh_key commands: - mkdir -p ~/.ssh - echo "$GITHUB_SSH_KEY" > ~/.ssh/id_ed25519 @@ -345,8 +354,6 @@ steps: - git remote add github git@github.com:celesrenata/stonks-oracle.git || git remote set-url github git@github.com:celesrenata/stonks-oracle.git - git push github main --force - git push github --tags --force - secrets: - - github_ssh_key when: event: push branch: main