Skip to content

Commit c4a6bac

Browse files
committed
chore: Optimize workflow runs
1 parent 0b8d15e commit c4a6bac

File tree

2 files changed

+26
-14
lines changed

2 files changed

+26
-14
lines changed

.github/workflows/integration.yml

+18-12
Original file line numberDiff line numberDiff line change
@@ -1,11 +1,17 @@
11
name: "Continuous Integration"
22
on:
3-
- pull_request
4-
- push
3+
pull_request:
4+
push:
5+
branches:
6+
- master
7+
- 3.0.x
8+
- 2.0.x
9+
- 1.0.x
10+
- 0.2.x
511
jobs:
612
phpunit-smoke-check:
713
name: "PHPUnit with SQLite"
8-
runs-on: "ubuntu-20.04"
14+
runs-on: ubuntu-latest
915
strategy:
1016
matrix:
1117
php-version:
@@ -30,7 +36,7 @@ jobs:
3036
run: "vendor/bin/phpunit"
3137
# phpunit-oci8:
3238
# name: "PHPUnit on OCI8"
33-
# runs-on: "ubuntu-20.04"
39+
# runs-on: ubuntu-latest
3440
# needs: "phpunit-smoke-check"
3541
# strategy:
3642
# matrix:
@@ -75,8 +81,8 @@ jobs:
7581
# run: "vendor/bin/phpunit"
7682
phpunit-postgres:
7783
name: "PHPUnit with PostgreSQL"
78-
runs-on: "ubuntu-20.04"
79-
needs: "phpunit-smoke-check"
84+
runs-on: ubuntu-latest
85+
needs: phpunit-smoke-check
8086
strategy:
8187
matrix:
8288
php-version:
@@ -115,8 +121,8 @@ jobs:
115121
run: "vendor/bin/phpunit"
116122
phpunit-mariadb:
117123
name: "PHPUnit with MariaDB"
118-
runs-on: "ubuntu-20.04"
119-
needs: "phpunit-smoke-check"
124+
runs-on: ubuntu-latest
125+
needs: phpunit-smoke-check
120126
strategy:
121127
matrix:
122128
php-version:
@@ -159,8 +165,8 @@ jobs:
159165
run: "vendor/bin/phpunit"
160166
phpunit-mysql:
161167
name: "PHPUnit with MySQL"
162-
runs-on: "ubuntu-20.04"
163-
needs: "phpunit-smoke-check"
168+
runs-on: ubuntu-latest
169+
needs: phpunit-smoke-check
164170
strategy:
165171
matrix:
166172
php-version:
@@ -205,8 +211,8 @@ jobs:
205211
run: "vendor/bin/phpunit"
206212
phpunit-mssql:
207213
name: "PHPUnit with SQL Server"
208-
runs-on: "ubuntu-20.04"
209-
needs: "phpunit-smoke-check"
214+
runs-on: ubuntu-latest
215+
needs: phpunit-smoke-check
210216
strategy:
211217
matrix:
212218
php-version:

.github/workflows/psalm.yml

+8-2
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,13 @@
11
name: Psalm
22
on:
3-
- pull_request
4-
- push
3+
pull_request:
4+
push:
5+
branches:
6+
- master
7+
- 3.0.x
8+
- 2.0.x
9+
- 1.0.x
10+
- 0.2.x
511
jobs:
612
psalm:
713
name: Psalm

0 commit comments

Comments
 (0)