Skip to content

Commit

Permalink
Use github action for composer dep (#97)
Browse files Browse the repository at this point in the history
* Use github action for composer dep

* one more time to check cache
  • Loading branch information
akondas authored May 18, 2024
1 parent 3c4eb76 commit 07409b7
Showing 1 changed file with 4 additions and 16 deletions.
20 changes: 4 additions & 16 deletions .github/workflows/tests.yml
Original file line number Diff line number Diff line change
Expand Up @@ -26,20 +26,8 @@ jobs:
php-version: "${{ matrix.php-version }}"
ini-values: memory_limit=-1

- name: Get Composer Cache Directory
id: composer-cache
run: |
echo "::set-output name=dir::$(composer config cache-files-dir)"
- name: "Install composer dependencies"
uses: "ramsey/composer-install@v2"

- uses: actions/cache@v2
with:
path: ${{ steps.composer-cache.outputs.dir }}
key: ${{ runner.os }}-${{ matrix.php-version }}-composer-${{ hashFiles('**/composer.lock') }}
restore-keys: |
${{ runner.os }}-${{ matrix.php-version }}-composer-
- name: Install dependencies
run: composer install

- name: Run test suite
run: composer tests
- name: "Run test suite"
run: "composer tests"

0 comments on commit 07409b7

Please sign in to comment.