Skip to content

Commit 33171cf

Browse files
committed
I have just updated github workflows
1 parent 26cb28c commit 33171cf

File tree

1 file changed

+22
-9
lines changed

1 file changed

+22
-9
lines changed

.github/workflows/ci.yml

+22-9
Original file line numberDiff line numberDiff line change
@@ -11,14 +11,26 @@ jobs:
1111

1212
strategy:
1313
matrix:
14-
operating-system: [ubuntu-latest]
15-
php-versions: ["8.2","8.1","8.0", "7.4", "7.3"]
14+
php-versions: ["8.4", "8.3","8.2","8.1","8.0", "7.4", "7.3"]
1615
dependency-stability: ["prefer-stable"]
1716

18-
name: P${{ matrix.php-versions }} - L${{ matrix.laravel }} - ${{ matrix.dependency-stability }} - ${{ matrix.operating-system}}
17+
name: P${{ matrix.php-versions }} - ${{ matrix.dependency-stability }} - ${{ matrix.operating-system }}
1918

2019
steps:
2120
- uses: actions/checkout@v3
21+
22+
- name: Get Composer Cache Directory
23+
id: composer-cache
24+
run: |
25+
echo "::set-output name=dir::$(composer config cache-files-dir)"
26+
27+
- name: Cache Composer Dependencies
28+
uses: actions/cache@v2
29+
with:
30+
path: ${{ steps.composer-cache.outputs.dir }}
31+
key: ${{ runner.os }}-composer-${{ hashFiles('**/composer.lock') }}
32+
restore-keys: ${{ runner.os }}-composer-
33+
2234
- name: Install PHP versions
2335
uses: shivammathur/setup-php@v2
2436
with:
@@ -27,12 +39,13 @@ jobs:
2739
if: steps.vendor-cache.outputs.cache-hit != 'true'
2840
run: composer update -q --no-ansi --no-interaction --no-scripts --no-progress --prefer-dist
2941

30-
- name: Update Dependencies with latest stable
31-
if: matrix.dependency-stability == 'prefer-stable'
32-
run: composer update --prefer-stable
33-
- name: Update Dependencies with lowest stable
34-
if: matrix.dependency-stability == 'prefer-lowest'
35-
run: composer update --prefer-stable --prefer-lowest
42+
- name: Update Dependencies
43+
run: |
44+
if [ "${{ matrix.dependency-stability }}" = "prefer-stable" ]; then
45+
composer update --prefer-stable
46+
elif [ "${{ matrix.dependency-stability }}" = "prefer-lowest" ]; then
47+
composer update --prefer-stable --prefer-lowest
48+
fi
3649
3750
- name: Show dir
3851
run: pwd

0 commit comments

Comments
 (0)