Skip to content

Commit

Permalink
fixes #13: Change the name of the steps and workflow and re-commit co…
Browse files Browse the repository at this point in the history
…mposer.lock.
  • Loading branch information
mattsqd committed Jul 31, 2024
1 parent 33f5266 commit fcf1cd6
Showing 1 changed file with 5 additions and 6 deletions.
11 changes: 5 additions & 6 deletions .github/workflows/run-validation.yml
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
name: Validate Feature Branches
name: Run validation with RoboValidate

on:
# Run on any branch so validate branch can always run.
Expand All @@ -9,7 +9,7 @@ on:
- 'feature/*'

jobs:
validate_feature_branches:
validate:
runs-on: ubuntu-latest

steps:
Expand All @@ -32,15 +32,14 @@ jobs:
uses: actions/cache@v4
with:
path: ${{ steps.composer-cache.outputs.dir }}
# This project doesn't commit composer.lock, use composer.lock instead if you do.
key: ${{ runner.os }}-composer-${{ hashFiles('**/composer.json') }}
key: ${{ runner.os }}-composer-${{ hashFiles('**/composer.lock') }}
restore-keys: ${{ runner.os }}-composer

- name: Install Composer dependencies
run: |
composer install --ignore-platform-reqs --optimize-autoloader --no-progress --no-ansi
- name: Run on a change to any branch
- name: Validate a change to any branch
if: github.event_name == 'push'
run: |
# Initialize status variables to 0
Expand All @@ -59,7 +58,7 @@ jobs:
exit 1
fi
- name: Run on pull requests
- name: Validate pull requests
if: github.event_name == 'pull_request'
run: |
vendor/bin/robo validate:commit-messages --target-branch="${{ github.base_ref }}"

0 comments on commit fcf1cd6

Please sign in to comment.