Skip to content

Commit 925add4

Browse files
committed
chore: update dependencies & add php 8.0 supports
Signed-off-by: Fery Wardiyanto <ferywardiyanto@gmail.com>
1 parent e518411 commit 925add4

File tree

3 files changed

+169
-386
lines changed

3 files changed

+169
-386
lines changed

.github/workflows/test.yml

Lines changed: 36 additions & 30 deletions
Original file line numberDiff line numberDiff line change
@@ -20,41 +20,47 @@ on:
2020
jobs:
2121
test:
2222
name: Test with PHP ${{ matrix.php }}
23-
runs-on: ubuntu-20.04
23+
runs-on: ubuntu-latest
2424
env:
2525
GIT_COMMIT_SHA: ${{ github.sha }}
2626
GIT_BRANCH: ${{ github.ref }}
2727

2828
strategy:
29+
fail-fast: false
2930
matrix:
30-
php: ['8.1']
31+
php: ['8.0', '8.1']
3132

3233
steps:
33-
- name: Checkout
34-
uses: actions/checkout@master
35-
36-
- name: Set up PHP
37-
uses: shivammathur/setup-php@v2
38-
with:
39-
php-version: ${{ matrix.php }}
40-
tools: composer:v2
41-
coverage: xdebug
42-
43-
- name: Get Composer cache directory
44-
id: composer-cache
45-
run: |
46-
echo "GIT_BRANCH=$(echo ${GIT_BRANCH##*/} | tr / -)" >> $GITHUB_ENV
47-
echo "::set-output name=dir::$(composer config cache-files-dir)"
48-
49-
- name: Cache Composer dependencies
50-
uses: actions/cache@v1
51-
with:
52-
path: ${{ steps.composer-cache.outputs.dir }}
53-
key: ${{ runner.os }}-composer-${{ hashFiles('**/composer.lock') }}
54-
restore-keys: ${{ runner.os }}-composer-
55-
56-
- name: Install dependencies
57-
run: composer install --prefer-dist --no-progress --no-suggest
58-
59-
- name: Run tests
60-
run: composer test
34+
- name: Checkout
35+
uses: actions/checkout@master
36+
37+
- name: Setup PHP ${{ matrix.php }}
38+
uses: shivammathur/setup-php@v2
39+
with:
40+
php-version: ${{ matrix.php }}
41+
ini-values: error_reporting=E_ALL
42+
tools: composer:v2
43+
coverage: xdebug
44+
45+
- name: Get Composer cache directory
46+
id: composer-cache
47+
run: |
48+
echo "GIT_BRANCH=$(echo ${GIT_BRANCH##*/} | tr / -)" >> $GITHUB_ENV
49+
echo "::set-output name=dir::$(composer config cache-files-dir)"
50+
51+
- name: Cache Composer dependencies
52+
uses: actions/cache@v1
53+
with:
54+
path: ${{ steps.composer-cache.outputs.dir }}
55+
key: ${{ runner.os }}-${{ matrix.php }}-composer-${{ hashFiles('**/composer.lock') }}
56+
restore-keys: ${{ runner.os }}-${{ matrix.php }}-composer-
57+
58+
- name: Install dependencies
59+
uses: nick-invision/retry@v1
60+
with:
61+
timeout_minutes: 5
62+
max_attempts: 3
63+
command: composer update --prefer-dist --no-interaction --no-progress
64+
65+
- name: Run tests
66+
run: composer test

0 commit comments

Comments
 (0)