Skip to content

Commit

Permalink
[CI] run tests before deploy
Browse files Browse the repository at this point in the history
  • Loading branch information
ottaviano committed Jun 15, 2024
1 parent 9dadc0b commit d4cf408
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions .github/workflows/ci-cd.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -65,7 +65,7 @@ jobs:
deploy-staging:
name: Deploy to Staging 🍾
runs-on: ubuntu-latest
needs: [lint, build]
needs: [lint, test, build]
if: github.event.ref == 'refs/heads/master'
environment: staging

Expand Down Expand Up @@ -100,7 +100,7 @@ jobs:
deploy-prod:
name: Deploy to Prod 🍾
runs-on: ubuntu-latest
needs: [lint, build]
needs: [lint, test, build]
if: github.event_name == 'release'
environment: production

Expand Down

0 comments on commit d4cf408

Please sign in to comment.