Skip to content

Commit d8792f2

Browse files
committed
# This is a combination of 23 commits.
# This is the 1st commit message: - Added TTY option to main.yml # This is the commit message #2: - Added step to install util-linux package # This is the commit message #3: main.yml updated # This is the commit message #4: main.yml updated # This is the commit message #5: - Update scrutinizer version from 7.4 to 8.1. # This is the commit message #6: scrutinizer updated # This is the commit message #7: scrutinizer updated # This is the commit message #8: scrutinizer updated # This is the commit message #9: scrutinizer updated # This is the commit message #10: main.yml updated # This is the commit message #11: ? # This is the commit message #12: update # This is the commit message #13: update # This is the commit message #14: update # This is the commit message #15: update # This is the commit message #16: update # This is the commit message #17: update # This is the commit message #18: update # This is the commit message #19: update # This is the commit message #20: update # This is the commit message #21: update # This is the commit message #22: update # This is the commit message #23: update
1 parent 952e9ae commit d8792f2

File tree

3 files changed

+28
-62
lines changed

3 files changed

+28
-62
lines changed

.github/workflows/main.yml

Lines changed: 21 additions & 19 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
# GithHub Actions Workflow generated with Ghygen
2-
# Original configuration: https://ghygen.hi-folks.dev?code=5eeae8ee67de18c6bb0ec00188b0c617
2+
# Original configuration: https://ghygen.hi-folks.dev?code=0555902844da5dd5163a69e93327a0aa
33
name: Laravel Git Hooks
44
on:
55
push:
@@ -20,22 +20,24 @@ jobs:
2020
strategy:
2121
matrix:
2222
operating-system: [ ubuntu-latest ]
23-
php-versions: [ '8.1' ]
24-
dependency-stability: [ 'prefer-stable' ]
23+
php: [ '8.1', '8.2' ]
24+
dependency-stability: [ 'prefer-stable','prefer-lowest' ]
2525

2626
laravel: [ '10.*' ]
2727
include:
2828
- laravel: 10.*
2929
testbench: 8.*
3030

31-
name: P${{ matrix.php-versions }} - L${{ matrix.laravel }} - ${{ matrix.dependency-stability }} - ${{ matrix.operating-system}}
31+
name: PHP ${{ matrix.php }} - Laravel ${{ matrix.laravel }} - ${{ matrix.dependency-stability }} - ${{ matrix.operating-system}}
3232

3333
steps:
34-
- uses: actions/checkout@v3
34+
- name: Checkout code
35+
uses: actions/checkout@v3
36+
3537
- name: Setup Node.js
3638
uses: actions/setup-node@v3
3739
with:
38-
node-version: '19.x'
40+
node-version: '18.x'
3941

4042
- name: Cache node_modules directory
4143
uses: actions/cache@v3
@@ -48,26 +50,26 @@ jobs:
4850
if: steps.node_modules-cache.outputs.cache-hit != 'true'
4951
run: npm ci --include=dev
5052

51-
- name: Setup PHP
53+
- name: Install PHP versions
5254
uses: shivammathur/setup-php@v2
5355
with:
5456
php-version: ${{ matrix.php }}
55-
extensions: dom, curl, libxml, mbstring, zip, pcntl, pdo, sqlite, pdo_sqlite, bcmath, soap, intl, gd, exif, iconv
56-
coverage: pcov
5757

58-
- name: Get Composer Cache Directory 2
58+
- name: Get Composer Cache Directory
5959
id: composer-cache
6060
run: |
6161
echo "::set-output name=dir::$(composer config cache-files-dir)"
62-
- uses: actions/cache@v3
62+
63+
- name: Cache Composer dependencies
64+
uses: actions/cache@v3
6365
id: actions-cache
6466
with:
6567
path: ${{ steps.composer-cache.outputs.dir }}
6668
key: ${{ runner.os }}-composer-${{ hashFiles('**/composer.lock') }}
6769
restore-keys: |
6870
${{ runner.os }}-composer-
6971
70-
- name: Cache PHP dependencies
72+
- name: Cache PHP dependencies (vendor)
7173
uses: actions/cache@v3
7274
id: vendor-cache
7375
with:
@@ -82,25 +84,25 @@ jobs:
8284
- name: Update Dependencies with latest stable
8385
if: matrix.dependency-stability == 'prefer-stable'
8486
run: composer update --prefer-stable
87+
8588
- name: Update Dependencies with lowest stable
8689
if: matrix.dependency-stability == 'prefer-lowest'
8790
run: composer update --prefer-stable --prefer-lowest
8891

89-
90-
- name: Show dir
91-
run: pwd
92-
- name: PHP Version
93-
run: php --version
92+
- name: Set up Git User
93+
run: |
94+
git config --global user.email "[email protected]"
95+
git config --global user.name "GitHub Actions"
9496
9597
# Code quality
96-
9798
- name: Execute tests (Unit and Feature tests) via PestPHP
99+
shell: 'script -q -e -c "bash {0}"'
98100
# Set environment
99101
env:
100102
SESSION_DRIVER: array
103+
TTY: true
101104

102105
run: vendor/bin/pest
103106

104-
105107
- name: Execute Code Sniffer via Laravel Pint
106108
run: vendor/bin/pint --test src config

.scrutinizer.yml

Lines changed: 0 additions & 36 deletions
This file was deleted.

composer.json

Lines changed: 7 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -21,13 +21,13 @@
2121
}
2222
],
2323
"require": {
24-
"php": "^7.2|^8.0",
25-
"illuminate/config": "^6.0|^7.0|^8.0|^9.0|^10.0",
26-
"illuminate/console": "^6.0|^7.0|^8.0|^9.0|^10.0",
27-
"illuminate/container": "^6.0|^7.0|^8.0|^9.0|^10.0",
28-
"illuminate/contracts": "^6.0|^7.0|^8.0|^9.0|^10.0",
29-
"illuminate/pipeline": "^6.0|^7.0|^8.0|^9.0|^10.0",
30-
"illuminate/support": "^6.0|^7.0|^8.0|^9.0|^10.0"
24+
"php": "^8.1",
25+
"illuminate/config": "^9.0|^10.0",
26+
"illuminate/console": "^9.0|^10.0",
27+
"illuminate/container": "^9.0|^10.0",
28+
"illuminate/contracts": "^9.0|^10.0",
29+
"illuminate/pipeline": "^9.0|^10.0",
30+
"illuminate/support": "^9.0|^10.0"
3131
},
3232
"require-dev": {
3333
"enlightn/enlightn": "^2.3",

0 commit comments

Comments
 (0)