@@ -16,35 +16,15 @@ jobs:
1616 runs-on : ubuntu-latest
1717 steps :
1818 - name : Checkout
19- uses : actions/checkout@v4
19+ uses : actions/checkout@11bd71901bbe5b1630ceea73d27597364c9af683 # v4.2.2
2020
2121 - name : ⚙️ Setup PHP, with composer and extensions
22- uses : shivammathur/ setup-php@v2
22+ uses : ./.github/workflows/actions/ setup-php
2323 with :
2424 php-version : ${{ matrix.php-versions }}
25- extensions : none,iconv,dom,curl,mbstring,tokenizer,xml,xmlwriter,simplexml,ctype
26- coverage : pcov
27-
28- - name : ♻️ Get composer cache directory
29- id : composer-cache
30- shell : bash
31- run : echo "dir=$(composer config cache-files-dir)" >> "$GITHUB_OUTPUT"
32-
33- - name : ♻️ Cache composer dependencies
34- uses : actions/cache@v4
35- with :
36- path : ${{ steps.composer-cache.outputs.dir }}
37- key : ${{ runner.os }}-composer-${{ matrix.php-versions }}-${{ hashFiles('**/composer.json') }}
38- restore-keys : ${{ runner.os }}-composer-
39-
40- - name : ⚙️ Install dependencies
41- shell : bash
42- run : |
43- composer install --no-progress --prefer-dist --optimize-autoloader
44- composer --working-dir=tools install --no-progress --prefer-dist --optimize-autoloader
4525
4626 - name : ♻️ Tools cache
47- uses : actions/cache@v4
27+ uses : actions/cache@5a3ec84eff668545956fd18022155c47e93e2684 # v4.2.3
4828 with :
4929 path : tools/cache
5030 key : ${{ runner.os }}-tools-${{ matrix.php-versions }}-${{ github.sha }}
@@ -65,18 +45,28 @@ jobs:
6545 run : composer phpstan -- --error-format=github
6646
6747 - name : ♻️ Tests cache
68- uses : actions/cache@v4
48+ uses : actions/cache@5a3ec84eff668545956fd18022155c47e93e2684 # v4.2.3
6949 with :
7050 path : tests/.phpunit.result.cache
7151 key : ${{ runner.os }}-tests-${{ github.sha }}
7252 restore-keys : |
7353 ${{ runner.os }}-tests-
7454
55+ - name : ♻️ Fixtures cache
56+ uses : actions/cache@5a3ec84eff668545956fd18022155c47e93e2684 # v4.2.3
57+ with :
58+ path : .cache
59+ key : fixture-cache-${{ hashFiles('composer.lock') }}
60+ restore-keys : fixture-cache-
61+
62+ - name : 🗂️ Load fixtures
63+ run : composer test:load-fixtures
64+
7565 - name : 🧪 Test
7666 run : composer test:ci
7767
7868 - name : 📊 Upload coverage results to Codecov
7969 if : matrix.stable
80- uses : codecov/codecov-action@v5
70+ uses : codecov/codecov-action@ad3126e916f78f00edff4ed0317cf185271ccc2d # v5.4.2
8171 with :
8272 files : ./build/logs/clover.xml
0 commit comments