chore(ci): update deploy workflow to include tag-based triggers and conditional testing steps

This commit is contained in:
Mathis HERRIOT
2026-01-20 10:52:48 +01:00
parent 9233c1bf89
commit e74973a9d0

View File

@@ -4,6 +4,8 @@ on:
push:
branches:
- main
tags:
- 'v*'
jobs:
validate:
@@ -46,6 +48,15 @@ jobs:
- name: Lint ${{ matrix.component }}
run: pnpm -F @memegoat/${{ matrix.component }} lint
- name: Test ${{ matrix.component }}
if: matrix.component == 'backend' || matrix.component == 'frontend'
run: |
if pnpm -F @memegoat/${{ matrix.component }} run | grep -q "test"; then
pnpm -F @memegoat/${{ matrix.component }} test
else
echo "No test script found for ${{ matrix.component }}, skipping."
fi
- name: Build ${{ matrix.component }}
run: pnpm -F @memegoat/${{ matrix.component }} build
env: