Skip to content

Commit

Permalink
Test fixing the workflow by install composer
Browse files Browse the repository at this point in the history
  • Loading branch information
cigamit committed Feb 22, 2025
1 parent c264806 commit 8bf0d4b
Showing 1 changed file with 15 additions and 15 deletions.
30 changes: 15 additions & 15 deletions .github/workflows/syntax.yml
Original file line number Diff line number Diff line change
Expand Up @@ -156,6 +156,21 @@ jobs:
sudo chmod 777 ${{ github.workspace }}/include/config.php
cat ${{ github.workspace}}/include/config.php
- name: Validate composer.json and composer.lock
run: composer validate --strict

- name: Cache Composer packages
id: composer-cache
uses: actions/cache@v3
with:
path: include/vendor
key: ${{ runner.os }}-php-${{ hashFiles('**/composer.lock') }}
restore-keys: |
${{ runner.os }}-php-
- name: Install dependencies
run: composer install --prefer-dist --no-progress

- name: Check install code for validity
run: |
cd ${{ github.workspace }}
Expand Down Expand Up @@ -185,21 +200,6 @@ jobs:
- name: View contents of logs
run: sudo cat ${{ github.workspace }}/log/cacti.log

# - name: Validate composer.json and composer.lock
# run: composer validate --strict

# - name: Cache Composer packages
# id: composer-cache
# uses: actions/cache@v3
# with:
# path: vendor
# key: ${{ runner.os }}-php-${{ hashFiles('**/composer.lock') }}
# restore-keys: |
# ${{ runner.os }}-php-
#
# - name: Install dependencies
# run: composer install --prefer-dist --no-progress

# Add a test script to composer.json, for instance: "test": "vendor/bin/phpunit"
# Docs: https://getcomposer.org/doc/articles/scripts.md

Expand Down

0 comments on commit 8bf0d4b

Please sign in to comment.