Add woodpecker pipeline file

This commit is contained in:
Rodrigo Verdiani 2025-10-26 21:30:53 -03:00
parent 98e7271392
commit 42deddf830

39
.woodpecker/pipeline.yaml Normal file
View File

@ -0,0 +1,39 @@
# .woodpecker.yml
# Run pipeline on pushes to main and pull requests
when:
event: [push, pull_request]
branch: [main, develop, feat/*, feature/*]
# Define environment variables
environment:
NODE_ENV: production
# Pipeline steps
steps:
# Install dependencies
- name: install
image: node:18-alpine
commands:
- echo "🔧 Installing dependencies..."
- npm ci --silent
when:
event: [push, pull_request]
# Run linting
- name: lint
image: node:18-alpine
commands:
- echo "📏 Linting code..."
- npm run lint
when:
event: [push, pull_request]
# Build application
- name: build
image: node:18-alpine
commands:
- echo "🏗️ Building application..."
- npm run build
when:
event: [push, pull_request]