Skip to content

Commit

Permalink
Update deploy.yml
Browse files Browse the repository at this point in the history
  • Loading branch information
sw326 authored Sep 20, 2024
1 parent e8a064d commit 7d1734c
Showing 1 changed file with 8 additions and 2 deletions.
10 changes: 8 additions & 2 deletions .github/workflows/deploy.yml
Original file line number Diff line number Diff line change
Expand Up @@ -29,8 +29,14 @@ jobs:
- name: Install dependencies
run: npm ci

# Option 1: Use --passWithNoTests
- name: Run tests
run: npm test
run: npm test -- --passWithNoTests

# Option 2: Remove test step entirely
# (uncomment the following line and remove the "Run tests" step above if you choose this option)
# - name: Placeholder for future tests
# run: echo "No tests configured yet"

- name: Build project
run: npm run build
Expand Down Expand Up @@ -58,4 +64,4 @@ jobs:
- name: Invalidate CloudFront cache
run: |
aws cloudfront create-invalidation --distribution-id ${{ secrets.CLOUDFRONT_DISTRIBUTION_ID }} --paths "/*"
aws cloudfront create-invalidation --distribution-id ${{ secrets.CLOUDFRONT_DISTRIBUTION_ID }} --paths "/*"

0 comments on commit 7d1734c

Please sign in to comment.