Skip to content

Commit

Permalink
Change model of installation of components by Phive
Browse files Browse the repository at this point in the history
  • Loading branch information
Aeliot-Tm committed Oct 27, 2024
1 parent fe44803 commit 8038a47
Showing 1 changed file with 11 additions and 55 deletions.
66 changes: 11 additions & 55 deletions .github/workflows/automated_testing.yml
Original file line number Diff line number Diff line change
Expand Up @@ -29,6 +29,7 @@ jobs:
- uses: shivammathur/setup-php@v2
with:
php-version: 8.2
tools: composer,phive

- uses: actions/checkout@v4

Expand All @@ -50,18 +51,8 @@ jobs:
key: "os-${{ runner.os }}-php-${{ runner.php-version }}-phive-${{ hashFiles('**/.phive/phars.xml', '**/.phive/trust-gpg-keys.txt') }}"
restore-keys: "os-${{ runner.os }}-php-${{ runner.php-version }}-phive-"

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

- name: Install PHP tools by PHIVE
uses: szepeviktor/phive-install@v1
with:
home: "${{ runner.temp }}/.phive"
binPath: "${{ github.workspace }}/tools/phive"
trustGpgKeys: '$(cat ./.phive/trust-gpg-keys.txt)'
run: composer phive-install

- name: Check composer requirements
run: composer require-check
Expand All @@ -74,6 +65,7 @@ jobs:
- uses: shivammathur/setup-php@v2
with:
php-version: 8.2
tools: composer,phive

- uses: actions/checkout@v4

Expand All @@ -95,18 +87,8 @@ jobs:
key: "os-${{ runner.os }}-php-${{ runner.php-version }}-phive-${{ hashFiles('**/.phive/phars.xml', '**/.phive/trust-gpg-keys.txt') }}"
restore-keys: "os-${{ runner.os }}-php-${{ runner.php-version }}-phive-"

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

- name: Install PHP tools by PHIVE
uses: szepeviktor/phive-install@v1
with:
home: "${{ runner.temp }}/.phive"
binPath: "${{ github.workspace }}/tools/phive"
trustGpgKeys: '$(cat ./.phive/trust-gpg-keys.txt)'
run: composer phive-install

- name: Check unused composer requirements
run: composer unused
Expand All @@ -119,6 +101,7 @@ jobs:
- uses: shivammathur/setup-php@v2
with:
php-version: 8.2
tools: composer,phive

- uses: actions/checkout@v4

Expand All @@ -140,18 +123,8 @@ jobs:
key: "os-${{ runner.os }}-php-${{ runner.php-version }}-phive-${{ hashFiles('**/.phive/phars.xml', '**/.phive/trust-gpg-keys.txt') }}"
restore-keys: "os-${{ runner.os }}-php-${{ runner.php-version }}-phive-"

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

- name: Install PHP tools by PHIVE
uses: szepeviktor/phive-install@v1
with:
home: "${{ runner.temp }}/.phive"
binPath: "${{ github.workspace }}/tools/phive"
trustGpgKeys: '$(cat ./.phive/trust-gpg-keys.txt)'
run: composer phive-install

- name: 'Run PHP CS Fixer: check'
run: composer run cs-fixer-check
Expand All @@ -164,6 +137,7 @@ jobs:
- uses: shivammathur/setup-php@v2
with:
php-version: 8.2
tools: composer,phive

- uses: actions/checkout@v4

Expand All @@ -185,18 +159,8 @@ jobs:
key: "os-${{ runner.os }}-php-${{ runner.php-version }}-phive-${{ hashFiles('**/.phive/phars.xml', '**/.phive/trust-gpg-keys.txt') }}"
restore-keys: "os-${{ runner.os }}-php-${{ runner.php-version }}-phive-"

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

- name: Install PHP tools by PHIVE
uses: szepeviktor/phive-install@v1
with:
home: "${{ runner.temp }}/.phive"
binPath: "${{ github.workspace }}/tools/phive"
trustGpgKeys: '$(cat ./.phive/trust-gpg-keys.txt)'
run: composer phive-install

- name: 'Run PHPStan analyse'
run: composer run phpstan-analyse
Expand All @@ -209,6 +173,7 @@ jobs:
- uses: shivammathur/setup-php@v2
with:
php-version: 8.2
tools: composer,phive

- uses: actions/checkout@v4

Expand All @@ -230,18 +195,8 @@ jobs:
key: "os-${{ runner.os }}-php-${{ runner.php-version }}-phive-${{ hashFiles('**/.phive/phars.xml', '**/.phive/trust-gpg-keys.txt') }}"
restore-keys: "os-${{ runner.os }}-php-${{ runner.php-version }}-phive-"

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

- name: Install PHP tools by PHIVE
uses: szepeviktor/phive-install@v1
with:
home: "${{ runner.temp }}/.phive"
binPath: "${{ github.workspace }}/tools/phive"
trustGpgKeys: '$(cat ./.phive/trust-gpg-keys.txt)'
run: composer phive-install

- name: 'Run all PHPUnit tests'
run: composer run phpunit
Expand All @@ -254,6 +209,7 @@ jobs:
- uses: shivammathur/setup-php@v2
with:
php-version: 8.2
tools: composer

- uses: actions/checkout@v4

Expand Down

0 comments on commit 8038a47

Please sign in to comment.