Skip to content

Commit e8d9f0a

Browse files
committed
Add conditions for running jobs
1 parent a0a8e50 commit e8d9f0a

1 file changed

Lines changed: 20 additions & 0 deletions

File tree

.github/workflows/tests.yml

Lines changed: 20 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -25,6 +25,22 @@ on:
2525
PHPBB_BRANCH:
2626
required: true
2727
type: string
28+
RUN_BASIC_JOBS:
29+
required: false
30+
type: string
31+
default: '1'
32+
RUN_MYSQL_JOBS:
33+
required: false
34+
type: string
35+
default: '1'
36+
RUN_POSTGRESQL_JOBS:
37+
required: false
38+
type: string
39+
default: '1'
40+
RUN_MSSQL_JOBS:
41+
required: false
42+
type: string
43+
default: '1'
2844
secrets:
2945
CODECOV_TOKEN:
3046
required: false
@@ -42,6 +58,7 @@ env:
4258
jobs:
4359
# START Basic Checks Job (EPV, code sniffer, images check, etc.)
4460
basic-checks:
61+
if: ${{ inputs.RUN_BASIC_JOBS == '1' }}
4562
runs-on: ubuntu-latest
4663
strategy:
4764
matrix:
@@ -110,6 +127,7 @@ jobs:
110127

111128
# START MySQL and MariaDB Job
112129
mysql-tests:
130+
if: ${{ inputs.RUN_MYSQL_JOBS == '1' }}
113131
runs-on: ubuntu-latest
114132
strategy:
115133
matrix:
@@ -254,6 +272,7 @@ jobs:
254272

255273
# START PostgreSQL Job
256274
postgres-tests:
275+
if: ${{ inputs.RUN_POSTGRESQL_JOBS == '1' }}
257276
runs-on: ubuntu-latest
258277
strategy:
259278
matrix:
@@ -364,6 +383,7 @@ jobs:
364383

365384
# START Other Tests Job (SQLite 3 and mssql)
366385
other-tests:
386+
if: ${{ inputs.RUN_MSSQL_JOBS == '1' }}
367387
runs-on: ubuntu-22.04
368388
strategy:
369389
matrix:

0 commit comments

Comments
 (0)