Skip to content

Merge pull request #338 from Ogstevyn/main #37

Merge pull request #338 from Ogstevyn/main

Merge pull request #338 from Ogstevyn/main #37

Workflow file for this run

name: CI/CD

Check failure on line 1 in .github/workflows/ci-cd.yml

View workflow run for this annotation

GitHub Actions / .github/workflows/ci-cd.yml

Invalid workflow file

(Line: 34, Col: 11): Unexpected value ''
on:
pull_request:
types: [opened, edited, synchronize]
jobs:
validate-pr:
runs-on: ubuntu-latest
steps:
- name: Validate PR title
uses: amannn/action-semantic-pull-request@v5
with:
types: |
feat
fix
docs
chore
test
refactor
ci
requireScope: false
- name: Validate PR description
run: |
if ! grep -qE ".{20,}" <<< "${{ github.event.pull_request.body }}"; then
echo "❌ PR description too short. Please provide context."
exit 1
fi
build-and-deploy:
needs: validate-pr # enforce validation before build
runs-on: ubuntu-latest
steps:
# existing build steps here