Skip to content

Commit ce138d0

Browse files
committed
Test fixes
1 parent faca237 commit ce138d0

File tree

1 file changed

+13
-2
lines changed

1 file changed

+13
-2
lines changed

.github/workflows/tests.yml

Lines changed: 13 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -18,10 +18,21 @@ jobs:
1818
fail-fast: true
1919
matrix:
2020
php: [7.3, 7.4]
21-
name: PHP ${{ matrix.php }} Integration Tests
21+
name: Integration (PHP ${{ matrix.php }})
2222
steps:
2323
- name: checkout
2424
uses: actions/checkout@v2
25+
- name: get cache directory
26+
id: composer-cache
27+
run: |
28+
echo "::set-output name=dir::$(composer config cache-files-dir)"
29+
- name: cache dependencies
30+
uses: actions/cache@v2
31+
with:
32+
path: ${{ steps.composer-cache.outputs.dir }}
33+
key: ${{ runner.os }}-composer-${{ matrix.php }}-${{ hashFiles('**.composer.lock') }}
34+
restore-keys: |
35+
${{ runner.os }}-composer-${{ matrix.php }}-
2536
- name: setup
2637
uses: shivammathur/setup-php@v2
2738
with:
@@ -30,7 +41,7 @@ jobs:
3041
tools: composer:v1
3142
coverage: none
3243
- name: install dependencies
33-
run: composer install --prefer-dist --no-interation --no-progress
44+
run: composer install --prefer-dist --no-interaction --no-progress
3445
- name: execute tests
3546
run: vendor/bin/phpunit tests/Integration
3647
env:

0 commit comments

Comments
 (0)