Skip to content

Commit

Permalink
Refactor installation of tools with PHIVE
Browse files Browse the repository at this point in the history
  • Loading branch information
Aeliot-Tm committed Jul 28, 2024
1 parent f1cb2d7 commit fc35db4
Showing 1 changed file with 20 additions and 8 deletions.
28 changes: 20 additions & 8 deletions .github/workflows/automated_testing.yml
Original file line number Diff line number Diff line change
Expand Up @@ -37,9 +37,8 @@ jobs:
uses: actions/cache@v4
with:
path: vendor
key: "${{ runner.os }}-php-${{ hashFiles('**/composer.lock') }}"
restore-keys: |
${{ runner.os }}-php-
key: "php-${{ runner.php-version }}-composer-${{ hashFiles('**/composer.lock') }}"
restore-keys: "php-${{ runner.php-version }}-composer-"

- name: Install dependencies
uses: ramsey/composer-install@v3
Expand All @@ -63,18 +62,31 @@ jobs:
uses: actions/cache@v4
with:
path: vendor
key: "${{ runner.os }}-php-${{ hashFiles('**/composer.lock') }}"
restore-keys: |
${{ runner.os }}-php-
key: "php-${{ runner.php-version }}-composer-${{ hashFiles('**/composer.lock') }}"
restore-keys: "php-${{ runner.php-version }}-composer-"

- name: Install dependencies
uses: ramsey/composer-install@v3

- name: Cache tools installed with PHIVE
uses: actions/cache@v4
with:
path: "${{ runner.temp }}/.phive"
key: "php-${{ matrix.php-version }}-phive-${{ hashFiles('.phive/phars.xml') }}"
restore-keys: "php-${{ matrix.php-version }}-phive-"

- name: Install PHIVE
uses: szepeviktor/phive@v1
with:
home: "${{ runner.temp }}/.phive"
binPath: "${{ github.workspace }}/tools/phive"

- name: Install PHPUnit with PHIVE
run: ./tools/phive --no-progress install --trust-gpg-keys 4AA394086372C20A phpunit
- name: Install PHP tools with PHIVE
uses: szepeviktor/phive-install@v1
with:
home: "${{ runner.temp }}/.phive"
binPath: "${{ github.workspace }}/tools/phive"
trustGpgKeys: "4AA394086372C20A"

- name: 'Run all PHPUnit tests'
run: composer run phpunit

0 comments on commit fc35db4

Please sign in to comment.