Skip to content

Commit

Permalink
chore: Updated ci workflow
Browse files Browse the repository at this point in the history
  • Loading branch information
lewislarsen committed Jul 23, 2024
1 parent 8087cb2 commit 9a94de4
Showing 1 changed file with 10 additions and 8 deletions.
18 changes: 10 additions & 8 deletions .github/workflows/composer-dependency-health.yml
Original file line number Diff line number Diff line change
Expand Up @@ -38,25 +38,27 @@ jobs:
restore-keys: ${{ runner.os }}-composer-

- name: Install dependencies
run: composer install --prefer-dist --no-progress --no-suggest
run: composer install --prefer-dist --no-progress
continue-on-error: true

- name: Capture dependency versions
if: failure()
if: always()
run: |
echo "# Installed Packages" > dependency_versions.txt
composer show >> dependency_versions.txt
echo "# composer.json" >> dependency_versions.txt
cat composer.json >> dependency_versions.txt
echo "# composer.lock" >> dependency_versions.txt
cat composer.lock >> dependency_versions.txt
- name: Check for outdated dependencies
if: always()
run: |
composer outdated --direct --format=json > outdated.json || true
if [ ! -s outdated.json ]; then
echo '{"installed":[]}' > outdated.json
fi
composer outdated --direct --format=json > outdated.json || echo '{"installed":[]}' > outdated.json
- name: Security Check
if: always()
uses: symfonycorp/security-checker-action@v5
with:
disable-exit-code: true
continue-on-error: true

- name: Process and Output Dependency Health Results
Expand Down

0 comments on commit 9a94de4

Please sign in to comment.