Skip to content

Commit

Permalink
fixes #13: Initialize the status vars and check which version of PHP …
Browse files Browse the repository at this point in the history
…is available.
  • Loading branch information
mattsqd committed Jul 31, 2024
1 parent ed699dc commit 831bc07
Showing 1 changed file with 5 additions and 0 deletions.
5 changes: 5 additions & 0 deletions .github/workflows/validate-feature-branches.yml
Original file line number Diff line number Diff line change
Expand Up @@ -32,6 +32,11 @@ jobs:
- name: Run on feature branches
if: github.event_name == 'push' && startsWith(github.ref, 'refs/heads/feature/')
run: |
# Initialize status variables to 0
status1=0
status2=0
status3=0
php --version
# Run all commands and capture their exit statuses
vendor/bin/robo validate:branch-name || status1=$? || status1=0
vendor/bin/robo validate:composer-lock || status3=$? || status3=0
Expand Down

0 comments on commit 831bc07

Please sign in to comment.