Skip to content

Commit

Permalink
chore: 🔧 Extend CI/CD pipeline for 'fix-' branches
Browse files Browse the repository at this point in the history
- Include 'fix-**' branches in GitHub Actions trigger events
- Extend preview deployment to 'fix-' branches
- Maintain existing workflow for 'feature/' branches and production deployment
  • Loading branch information
ad956 committed Sep 23, 2024
1 parent 3bae326 commit 52e82fa
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions .github/workflows/test-and-deploy.yml
Original file line number Diff line number Diff line change
Expand Up @@ -2,9 +2,9 @@ name: CI/CD Pipeline For Playwright Tests and Vercel Deployment

on:
push:
branches: [main, "feature/**"]
branches: [main, "feature/**", "fix-**"]
pull_request:
branches: [main, "feature/**"]
branches: [main, "feature/**", "fix-**"]

jobs:
test:
Expand Down Expand Up @@ -43,7 +43,7 @@ jobs:

deploy-preview:
needs: test
if: github.event_name == 'push' && (startsWith(github.ref, 'refs/heads/feature/'))
if: github.event_name == 'push' && (startsWith(github.ref, 'refs/heads/feature/') || startsWith(github.ref, 'refs/heads/fix-'))
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
Expand Down

0 comments on commit 52e82fa

Please sign in to comment.