Skip to content

Commit 6d931f8

Browse files
committed
ci: Updated Workflow Files
1 parent 126dd12 commit 6d931f8

5 files changed

Lines changed: 34 additions & 54 deletions

File tree

.github/workflows/php80.yml

Lines changed: 4 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -10,14 +10,11 @@ env:
1010
PHP_VERSION: 8.0
1111
jobs:
1212
test:
13-
runs-on: "$OPERATING_SYS"
13+
runs-on: ${{ env.OPERATING_SYS }}
1414
strategy:
1515
fail-fast: true
16-
matrix:
17-
os: [ ubuntu-latest ]
18-
php: [ 8.0 ]
1916

20-
name: "PHP $PHP_VERSION - $OPERATING_SYS"
17+
name: "PHP ${{ env.PHP_VERSION }} - ${{ env.OPERATING_SYS }}"
2118

2219
steps:
2320
- name: Clone Repo
@@ -26,13 +23,13 @@ jobs:
2623
- name: Setup PHP
2724
uses: shivammathur/setup-php@v2
2825
with:
29-
php-version: $PHP_VERSION
26+
php-version: ${{ env.PHP_VERSION }}
3027
extensions: mysqli, mbstring, sqlsrv
3128
tools: phpunit:8.5.13
3229

3330

3431
- name: Install Dependencies
35-
run: composer install --prefer-source --no-interaction --no-dev
32+
run: composer install --prefer-source --no-interaction
3633

3734
- name: Execute Tests
3835
run: phpunit --configuration=tests/phpunit.xml

.github/workflows/php81.yml

Lines changed: 7 additions & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -5,18 +5,14 @@ on:
55
branches: [ master ]
66
pull_request:
77
branches: [ master ]
8-
8+
env:
9+
OPERATING_SYS: "ubuntu-latest"
10+
PHP_VERSION: 8.1
911
jobs:
1012
test:
11-
runs-on: ${{ matrix.os }}
12-
13-
strategy:
14-
fail-fast: true
15-
matrix:
16-
os: [ ubuntu-latest ]
17-
php: [8.1]
13+
runs-on: ${{ env.OPERATING_SYS }}
1814

19-
name: PHP${{matrix.php}} - ${{matrix.os}}
15+
name: "PHP ${{ env.PHP_VERSION }} - ${{ env.OPERATING_SYS }}"
2016

2117
steps:
2218
- name: Clone Repo
@@ -25,13 +21,13 @@ jobs:
2521
- name: Setup PHP
2622
uses: shivammathur/setup-php@v2
2723
with:
28-
php-version: ${{ matrix.php }}
24+
php-version: ${{ env.PHP_VERSION }}
2925
extensions: mysqli, mbstring, sqlsrv
3026
tools: phpunit:9.5.20, composer
3127

3228

3329
- name: Install Dependencies
34-
run: composer install --prefer-source --no-interaction --no-dev
30+
run: composer install --prefer-source --no-interaction
3531

3632
- name: Execute Tests
3733
run: phpunit --configuration=tests/phpunit.xml
@@ -40,4 +36,3 @@ jobs:
4036
uses: codecov/codecov-action@v4
4137
env:
4238
CODECOV_TOKEN: ${{ secrets.CODECOV_TOKEN }}
43-

.github/workflows/php82.yml

Lines changed: 8 additions & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -5,18 +5,14 @@ on:
55
branches: [ master, dev ]
66
pull_request:
77
branches: [ master ]
8-
8+
env:
9+
OPERATING_SYS: "ubuntu-latest"
10+
PHP_VERSION: 8.2
911
jobs:
1012
test:
11-
runs-on: ${{ matrix.os }}
12-
13-
strategy:
14-
fail-fast: true
15-
matrix:
16-
os: [ ubuntu-latest ]
17-
php: [8.2]
13+
runs-on: ${{ env.OPERATING_SYS }}
1814

19-
name: PHP${{matrix.php}} - ${{matrix.os}}
15+
name: "PHP ${{ env.PHP_VERSION }} - ${{ env.OPERATING_SYS }}"
2016

2117
steps:
2218
- name: Clone Repo
@@ -25,17 +21,17 @@ jobs:
2521
- name: Setup PHP
2622
uses: shivammathur/setup-php@v2
2723
with:
28-
php-version: ${{ matrix.php }}
24+
php-version: ${{ env.PHP_VERSION }}
2925
extensions: mysqli, mbstring, sqlsrv
3026
tools: phpunit:9.5.20, composer
3127

3228
- name: Install Dependencies
33-
run: composer install --prefer-source --no-interaction --no-dev
29+
run: composer install --prefer-source --no-interaction
3430

3531
- name: Execute Tests
3632
run: phpunit --configuration=tests/phpunit.xml
3733

3834
- name: CodeCov
3935
uses: codecov/codecov-action@v4
4036
env:
41-
CODECOV_TOKEN: ${{ secrets.CODECOV_TOKEN }}
37+
CODECOV_TOKEN: ${{ secrets.CODECOV_TOKEN }}

.github/workflows/php83.yml

Lines changed: 7 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -5,18 +5,14 @@ on:
55
branches: [ master, dev ]
66
pull_request:
77
branches: [ master, dev ]
8-
8+
env:
9+
OPERATING_SYS: "ubuntu-latest"
10+
PHP_VERSION: 8.3
911
jobs:
1012
test:
11-
runs-on: ${{ matrix.os }}
12-
13-
strategy:
14-
fail-fast: true
15-
matrix:
16-
os: [ ubuntu-latest ]
17-
php: [8.3]
13+
runs-on: ${{ env.OPERATING_SYS }}
1814

19-
name: PHP${{matrix.php}} - ${{matrix.os}}
15+
name: "PHP ${{ env.PHP_VERSION }} - ${{ env.OPERATING_SYS }}"
2016

2117
steps:
2218
- name: Clone Repo
@@ -25,12 +21,12 @@ jobs:
2521
- name: Setup PHP
2622
uses: shivammathur/setup-php@v2
2723
with:
28-
php-version: ${{ matrix.php }}
24+
php-version: ${{ env.PHP_VERSION }}
2925
extensions: mysqli, mbstring, sqlsrv
3026
tools: phpunit:9.5.20, composer
3127

3228
- name: Install Dependencies
33-
run: composer install --prefer-source --no-interaction --no-dev
29+
run: composer install --prefer-source --no-interaction
3430

3531
- name: Execute Tests
3632
run: phpunit --configuration=tests/phpunit.xml

.github/workflows/php84.yml

Lines changed: 8 additions & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -5,18 +5,14 @@ on:
55
branches: [ master, dev ]
66
pull_request:
77
branches: [ master ]
8-
8+
env:
9+
OPERATING_SYS: "ubuntu-latest"
10+
PHP_VERSION: 8.4
911
jobs:
1012
test:
11-
runs-on: ${{ matrix.os }}
12-
13-
strategy:
14-
fail-fast: true
15-
matrix:
16-
os: [ ubuntu-latest ]
17-
php: [8.4]
13+
runs-on: ${{ env.OPERATING_SYS }}
1814

19-
name: PHP${{matrix.php}} - ${{matrix.os}}
15+
name: "PHP ${{ env.PHP_VERSION }} - ${{ env.OPERATING_SYS }}"
2016

2117
steps:
2218
- name: Clone Repo
@@ -25,20 +21,20 @@ jobs:
2521
- name: Setup PHP
2622
uses: shivammathur/setup-php@v2
2723
with:
28-
php-version: ${{ matrix.php }}
24+
php-version: ${{ env.PHP_VERSION }}
2925
extensions: mysqli, mbstring, sqlsrv
3026
tools: phpunit:9.5.20, composer
3127

3228
- name: Shutdown Ubuntu MySQL
3329
run: sudo service mysql stop
3430

3531
- name: Install Dependencies
36-
run: composer install --prefer-source --no-interaction --no-dev
32+
run: composer install --prefer-source --no-interaction
3733

3834
- name: Execute Tests
3935
run: phpunit --configuration=tests/phpunit.xml
4036

4137
- name: CodeCov
4238
uses: codecov/codecov-action@v4
4339
env:
44-
CODECOV_TOKEN: ${{ secrets.CODECOV_TOKEN }}
40+
CODECOV_TOKEN: ${{ secrets.CODECOV_TOKEN }}

0 commit comments

Comments
 (0)