diff --git a/.github/workflows/build.yml b/.github/workflows/build.yml index 30b988edb4f..236363ddeef 100644 --- a/.github/workflows/build.yml +++ b/.github/workflows/build.yml @@ -1,6 +1,21 @@ -name: build +on: + pull_request: + paths-ignore: + - 'docs/**' + - 'README.md' + - 'CHANGELOG.md' + - '.gitignore' + - '.gitattributes' + + push: + paths-ignore: + - 'docs/**' + - 'README.md' + - 'CHANGELOG.md' + - '.gitignore' + - '.gitattributes' -on: [push, pull_request] +name: build env: DEFAULT_COMPOSER_FLAGS: "--prefer-dist --no-interaction --no-progress --optimize-autoloader --ansi" @@ -13,6 +28,9 @@ concurrency: jobs: phpunit: + # This workflow file runs actions for forked repositories, pull requests, and pushes to the master branch. + if: github.event.repository.fork == true || github.event_name == 'pull_request' || (github.event_name == 'push' && github.ref == 'refs/heads/master') + name: PHP ${{ matrix.php }} on ${{ matrix.os }} runs-on: ${{ matrix.os }} diff --git a/.github/workflows/ci-mssql.yml b/.github/workflows/ci-mssql.yml index 94255d93ebe..834bcc27d80 100644 --- a/.github/workflows/ci-mssql.yml +++ b/.github/workflows/ci-mssql.yml @@ -1,6 +1,19 @@ on: - - pull_request - - push + pull_request: + paths-ignore: + - 'docs/**' + - 'README.md' + - 'CHANGELOG.md' + - '.gitignore' + - '.gitattributes' + + push: + paths-ignore: + - 'docs/**' + - 'README.md' + - 'CHANGELOG.md' + - '.gitignore' + - '.gitattributes' name: ci-mssql @@ -9,7 +22,10 @@ concurrency: cancel-in-progress: true jobs: - tests: + ci-mssql: + # This workflow file runs actions for forked repositories, pull requests, and pushes to the master branch. + if: github.event.repository.fork == true || github.event_name == 'pull_request' || (github.event_name == 'push' && github.ref == 'refs/heads/master') + name: PHP ${{ matrix.php }}-mssql-${{ matrix.mssql }} env: diff --git a/.github/workflows/ci-mysql.yml b/.github/workflows/ci-mysql.yml index a948a9e4cae..5dd78ccf8f8 100644 --- a/.github/workflows/ci-mysql.yml +++ b/.github/workflows/ci-mysql.yml @@ -1,6 +1,19 @@ on: - - pull_request - - push + pull_request: + paths-ignore: + - 'docs/**' + - 'README.md' + - 'CHANGELOG.md' + - '.gitignore' + - '.gitattributes' + + push: + paths-ignore: + - 'docs/**' + - 'README.md' + - 'CHANGELOG.md' + - '.gitignore' + - '.gitattributes' name: ci-mysql @@ -9,8 +22,12 @@ concurrency: cancel-in-progress: true jobs: - tests: + ci-mysql: + # This workflow file runs actions for forked repositories, pull requests, and pushes to the master branch. + if: github.event.repository.fork == true || github.event_name == 'pull_request' || (github.event_name == 'push' && github.ref == 'refs/heads/master') + name: PHP ${{ matrix.php }}-mysql-${{ matrix.mysql }} + env: extensions: curl, intl, pdo, pdo_mysql XDEBUG_MODE: coverage, develop diff --git a/.github/workflows/ci-node.yml b/.github/workflows/ci-node.yml index 0d937733554..928550359a3 100644 --- a/.github/workflows/ci-node.yml +++ b/.github/workflows/ci-node.yml @@ -1,6 +1,21 @@ -name: build-node +on: + pull_request: + paths-ignore: + - 'docs/**' + - 'README.md' + - 'CHANGELOG.md' + - '.gitignore' + - '.gitattributes' + + push: + paths-ignore: + - 'docs/**' + - 'README.md' + - 'CHANGELOG.md' + - '.gitignore' + - '.gitattributes' -on: [push, pull_request] +name: build-node env: DEFAULT_COMPOSER_FLAGS: "--prefer-dist --no-interaction --no-progress --optimize-autoloader --ansi" @@ -10,7 +25,10 @@ concurrency: cancel-in-progress: true jobs: - test: + ci-node: + # This workflow file runs actions for forked repositories, pull requests, and pushes to the master branch. + if: github.event.repository.fork == true || github.event_name == 'pull_request' || (github.event_name == 'push' && github.ref == 'refs/heads/master') + name: NPM 6 on ubuntu-latest runs-on: ubuntu-latest diff --git a/.github/workflows/ci-oracle.yml b/.github/workflows/ci-oracle.yml index 21520a1045b..d3bef0fdad1 100644 --- a/.github/workflows/ci-oracle.yml +++ b/.github/workflows/ci-oracle.yml @@ -1,6 +1,19 @@ on: - - pull_request - - push + pull_request: + paths-ignore: + - 'docs/**' + - 'README.md' + - 'CHANGELOG.md' + - '.gitignore' + - '.gitattributes' + + push: + paths-ignore: + - 'docs/**' + - 'README.md' + - 'CHANGELOG.md' + - '.gitignore' + - '.gitattributes' name: ci-oracle @@ -9,7 +22,10 @@ concurrency: cancel-in-progress: true jobs: - tests: + ci-oracle: + # This workflow file runs actions for forked repositories, pull requests, and pushes to the master branch. + if: github.event.repository.fork == true || github.event_name == 'pull_request' || (github.event_name == 'push' && github.ref == 'refs/heads/master') + name: PHP ${{ matrix.php }}-${{ matrix.os }} env: diff --git a/.github/workflows/ci-pgsql.yml b/.github/workflows/ci-pgsql.yml index edaf4a5df5d..f3308bd9acc 100644 --- a/.github/workflows/ci-pgsql.yml +++ b/.github/workflows/ci-pgsql.yml @@ -1,6 +1,19 @@ on: - - pull_request - - push + pull_request: + paths-ignore: + - 'docs/**' + - 'README.md' + - 'CHANGELOG.md' + - '.gitignore' + - '.gitattributes' + + push: + paths-ignore: + - 'docs/**' + - 'README.md' + - 'CHANGELOG.md' + - '.gitignore' + - '.gitattributes' name: ci-pgsql @@ -9,8 +22,12 @@ concurrency: cancel-in-progress: true jobs: - tests: + ci-pgsql: + # This workflow file runs actions for forked repositories, pull requests, and pushes to the master branch. + if: github.event.repository.fork == true || github.event_name == 'pull_request' || (github.event_name == 'push' && github.ref == 'refs/heads/master') + name: PHP ${{ matrix.php }}-pgsql-${{ matrix.pgsql }} + env: extensions: curl, intl, pdo, pdo_pgsql XDEBUG_MODE: coverage, develop diff --git a/.github/workflows/ci-sqlite.yml b/.github/workflows/ci-sqlite.yml index b82d187ef9a..00e22b6a979 100644 --- a/.github/workflows/ci-sqlite.yml +++ b/.github/workflows/ci-sqlite.yml @@ -1,6 +1,19 @@ on: - - pull_request - - push + pull_request: + paths-ignore: + - 'docs/**' + - 'README.md' + - 'CHANGELOG.md' + - '.gitignore' + - '.gitattributes' + + push: + paths-ignore: + - 'docs/**' + - 'README.md' + - 'CHANGELOG.md' + - '.gitignore' + - '.gitattributes' name: ci-sqlite @@ -9,7 +22,10 @@ concurrency: cancel-in-progress: true jobs: - tests: + ci-sqlite: + # This workflow file runs actions for forked repositories, pull requests, and pushes to the master branch. + if: github.event.repository.fork == true || github.event_name == 'pull_request' || (github.event_name == 'push' && github.ref == 'refs/heads/master') + name: PHP ${{ matrix.php }}-sqlite env: