# Woodpecker CI pipeline for Helix Engage Server (sidecar) when: - event: [push, manual] steps: unit-tests: image: node:20 commands: - npm ci - npm test -- --ci --forceExit notify-teams: image: curlimages/curl environment: TEAMS_WEBHOOK: from_secret: teams_webhook commands: - > curl -s -X POST "$TEAMS_WEBHOOK" -H "Content-Type:application/json" -d '{"type":"message","attachments":[{"contentType":"application/vnd.microsoft.card.adaptive","content":{"type":"AdaptiveCard","version":"1.4","body":[{"type":"TextBlock","size":"Medium","weight":"Bolder","text":"Helix Engage Server — Build #'"$CI_PIPELINE_NUMBER"'"},{"type":"TextBlock","text":"Branch: '"$CI_COMMIT_BRANCH"'","wrap":true},{"type":"TextBlock","text":"'"$(echo $CI_COMMIT_MESSAGE | head -c 80)"'","wrap":true}],"actions":[{"type":"Action.OpenUrl","title":"View Pipeline","url":"https://operations.healix360.net/repos/2/pipeline/'"$CI_PIPELINE_NUMBER"'"}]}}]}' when: - status: [success, failure]