Skip to content

Commit

Permalink
fix: Run tests only on pull requests and scheduled
Browse files Browse the repository at this point in the history
Signed-off-by: Ferdinand Thiessen <opensource@fthiessen.de>
  • Loading branch information
susnux authored and nickvergessen committed Jan 26, 2024
1 parent fd378c1 commit 4a1ff0b
Show file tree
Hide file tree
Showing 10 changed files with 27 additions and 64 deletions.
12 changes: 2 additions & 10 deletions .github/workflows/object-storage-azure.yml
Original file line number Diff line number Diff line change
@@ -1,16 +1,8 @@
name: Object storage azure
on:
pull_request:
paths:
- '.github/workflows/**'
- '3rdparty/**'
- '**/*.php'
- '**/lib/**'
- '**/tests/**'
- '**/vendor-bin/**'
- '.php-cs-fixer.dist.php'
- 'composer.json'
- 'composer.lock'
schedule:
- cron: "15 2 * * *"

concurrency:
group: object-storage-azure-${{ github.head_ref || github.run_id }}
Expand Down
12 changes: 2 additions & 10 deletions .github/workflows/object-storage-s3.yml
Original file line number Diff line number Diff line change
@@ -1,16 +1,8 @@
name: Object storage S3
on:
pull_request:
paths:
- '.github/workflows/**'
- '3rdparty/**'
- '**/*.php'
- '**/lib/**'
- '**/tests/**'
- '**/vendor-bin/**'
- '.php-cs-fixer.dist.php'
- 'composer.json'
- 'composer.lock'
schedule:
- cron: "15 2 * * *"

concurrency:
group: object-storage-s3-${{ github.head_ref || github.run_id }}
Expand Down
12 changes: 2 additions & 10 deletions .github/workflows/object-storage-swift.yml
Original file line number Diff line number Diff line change
@@ -1,16 +1,8 @@
name: Object storage Swift
on:
pull_request:
paths:
- '.github/workflows/**'
- '3rdparty/**'
- '**/*.php'
- '**/lib/**'
- '**/tests/**'
- '**/vendor-bin/**'
- '.php-cs-fixer.dist.php'
- 'composer.json'
- 'composer.lock'
schedule:
- cron: "15 2 * * *"

concurrency:
group: object-storage-swift-${{ github.head_ref || github.run_id }}
Expand Down
7 changes: 2 additions & 5 deletions .github/workflows/phpunit-mariadb.yml
Original file line number Diff line number Diff line change
Expand Up @@ -7,11 +7,8 @@ name: PHPUnit mariadb

on:
pull_request:
push:
branches:
- main
- master
- stable*
schedule:
- cron: "5 2 * * *"

permissions:
contents: read
Expand Down
5 changes: 2 additions & 3 deletions .github/workflows/phpunit-memcached.yml
Original file line number Diff line number Diff line change
Expand Up @@ -7,9 +7,8 @@ name: PHPUnit memcached

on:
pull_request:
push:
branches:
- stable*
schedule:
- cron: "5 2 * * *"

permissions:
contents: read
Expand Down
9 changes: 3 additions & 6 deletions .github/workflows/phpunit-mysql.yml
Original file line number Diff line number Diff line change
Expand Up @@ -7,11 +7,8 @@ name: PHPUnit mysql

on:
pull_request:
push:
branches:
- main
- master
- stable*
schedule:
- cron: "5 2 * * *"

permissions:
contents: read
Expand All @@ -25,7 +22,7 @@ jobs:
runs-on: ubuntu-latest

outputs:
src: ${{ steps.changes.outputs.src}}
src: ${{ steps.changes.outputs.src }}

steps:
- uses: dorny/paths-filter@4512585405083f25c027a35db413c2b3b9006d50 # v2.11.1
Expand Down
9 changes: 3 additions & 6 deletions .github/workflows/phpunit-nodb.yml
Original file line number Diff line number Diff line change
Expand Up @@ -8,11 +8,8 @@ name: PHPUnit nodb

on:
pull_request:
push:
branches:
- main
- master
- stable*
schedule:
- cron: "5 2 * * *"

permissions:
contents: read
Expand All @@ -26,7 +23,7 @@ jobs:
runs-on: ubuntu-latest

outputs:
src: ${{ steps.changes.outputs.src}}
src: ${{ steps.changes.outputs.src }}

steps:
- uses: dorny/paths-filter@4512585405083f25c027a35db413c2b3b9006d50 # v2.11.1
Expand Down
7 changes: 5 additions & 2 deletions .github/workflows/phpunit-oci.yml
Original file line number Diff line number Diff line change
@@ -1,6 +1,9 @@
name: PHPUnit oci

on: pull_request
on:
pull_request:
schedule:
- cron: "5 2 * * *"

permissions:
contents: read
Expand All @@ -14,7 +17,7 @@ jobs:
runs-on: ubuntu-latest

outputs:
src: ${{ steps.changes.outputs.src}}
src: ${{ steps.changes.outputs.src }}

steps:
- uses: dorny/paths-filter@4512585405083f25c027a35db413c2b3b9006d50 # v2.11.1
Expand Down
9 changes: 3 additions & 6 deletions .github/workflows/phpunit-pgsql.yml
Original file line number Diff line number Diff line change
Expand Up @@ -7,11 +7,8 @@ name: PHPUnit pgsql

on:
pull_request:
push:
branches:
- main
- master
- stable*
schedule:
- cron: "5 2 * * *"

permissions:
contents: read
Expand All @@ -25,7 +22,7 @@ jobs:
runs-on: ubuntu-latest

outputs:
src: ${{ steps.changes.outputs.src}}
src: ${{ steps.changes.outputs.src }}

steps:
- uses: dorny/paths-filter@4512585405083f25c027a35db413c2b3b9006d50 # v2.11.1
Expand Down
9 changes: 3 additions & 6 deletions .github/workflows/phpunit-sqlite.yml
Original file line number Diff line number Diff line change
Expand Up @@ -7,11 +7,8 @@ name: PHPUnit sqlite

on:
pull_request:
push:
branches:
- main
- master
- stable*
schedule:
- cron: "5 2 * * *"

permissions:
contents: read
Expand All @@ -25,7 +22,7 @@ jobs:
runs-on: ubuntu-latest

outputs:
src: ${{ steps.changes.outputs.src}}
src: ${{ steps.changes.outputs.src }}

steps:
- uses: dorny/paths-filter@4512585405083f25c027a35db413c2b3b9006d50 # v2.11.1
Expand Down

0 comments on commit 4a1ff0b

Please sign in to comment.