mirror of
https://github.com/php/php-src.git
synced 2026-03-24 00:02:20 +01:00
Merge branch 'PHP-8.5'
* PHP-8.5: Create separate workflow for nightly slack notification
This commit is contained in:
10
.github/actions/notify-slack/action.yml
vendored
10
.github/actions/notify-slack/action.yml
vendored
@@ -1,10 +0,0 @@
|
|||||||
name: Notify Slack
|
|
||||||
inputs:
|
|
||||||
token:
|
|
||||||
required: true
|
|
||||||
runs:
|
|
||||||
using: composite
|
|
||||||
steps:
|
|
||||||
- shell: bash
|
|
||||||
run: >-
|
|
||||||
curl -X POST -H 'Content-type: application/json' --data '{"attachments": [{"text": "Job in *nightly* failed", "footer": "<https://github.com/php/php-src/actions/runs/${{ github.run_id }}|View Run>", "color": "danger", "mrkdwn_in": ["text"]}]}' ${{ inputs.token }}
|
|
||||||
16
.github/workflows/nightly-results.yml
vendored
Normal file
16
.github/workflows/nightly-results.yml
vendored
Normal file
@@ -0,0 +1,16 @@
|
|||||||
|
name: Nightly results
|
||||||
|
on:
|
||||||
|
workflow_run:
|
||||||
|
workflows:
|
||||||
|
- Nightly
|
||||||
|
types:
|
||||||
|
- completed
|
||||||
|
jobs:
|
||||||
|
on-failure:
|
||||||
|
runs-on: ubuntu-latest
|
||||||
|
if: ${{ github.repository == 'php/php-src' && github.event.workflow_run.conclusion == 'failure' }}
|
||||||
|
steps:
|
||||||
|
- run: |
|
||||||
|
export DEBIAN_FRONTEND=noninteractive
|
||||||
|
sudo apt-get install -y curl
|
||||||
|
curl -X POST -H 'Content-type: application/json' --data '{"attachments": [{"text": "Job in *nightly* failed", "footer": "<${{ github.event.workflow_run.jobs_url }}|View Run>", "color": "danger", "mrkdwn_in": ["text"]}]}' ${{ secrets.ACTION_MONITORING_SLACK }}
|
||||||
51
.github/workflows/nightly.yml
vendored
51
.github/workflows/nightly.yml
vendored
@@ -138,12 +138,6 @@ jobs:
|
|||||||
-d opcache.enable_cli=1
|
-d opcache.enable_cli=1
|
||||||
- name: Extra tests
|
- name: Extra tests
|
||||||
uses: ./.github/actions/extra-tests
|
uses: ./.github/actions/extra-tests
|
||||||
- name: Notify Slack
|
|
||||||
if: failure()
|
|
||||||
uses: ./.github/actions/notify-slack
|
|
||||||
with:
|
|
||||||
token: ${{ secrets.ACTION_MONITORING_SLACK }}
|
|
||||||
|
|
||||||
LINUX_X64:
|
LINUX_X64:
|
||||||
services:
|
services:
|
||||||
mysql:
|
mysql:
|
||||||
@@ -272,11 +266,6 @@ jobs:
|
|||||||
uses: ./.github/actions/extra-tests
|
uses: ./.github/actions/extra-tests
|
||||||
- name: Verify generated files are up to date
|
- name: Verify generated files are up to date
|
||||||
uses: ./.github/actions/verify-generated-files
|
uses: ./.github/actions/verify-generated-files
|
||||||
- name: Notify Slack
|
|
||||||
if: failure()
|
|
||||||
uses: ./.github/actions/notify-slack
|
|
||||||
with:
|
|
||||||
token: ${{ secrets.ACTION_MONITORING_SLACK }}
|
|
||||||
LINUX_X32:
|
LINUX_X32:
|
||||||
strategy:
|
strategy:
|
||||||
fail-fast: false
|
fail-fast: false
|
||||||
@@ -358,11 +347,6 @@ jobs:
|
|||||||
-d opcache.enable_cli=1
|
-d opcache.enable_cli=1
|
||||||
- name: Extra tests
|
- name: Extra tests
|
||||||
uses: ./.github/actions/extra-tests
|
uses: ./.github/actions/extra-tests
|
||||||
- name: Notify Slack
|
|
||||||
if: failure()
|
|
||||||
uses: ./.github/actions/notify-slack
|
|
||||||
with:
|
|
||||||
token: ${{ secrets.ACTION_MONITORING_SLACK }}
|
|
||||||
MACOS:
|
MACOS:
|
||||||
strategy:
|
strategy:
|
||||||
fail-fast: false
|
fail-fast: false
|
||||||
@@ -418,11 +402,6 @@ jobs:
|
|||||||
uses: ./.github/actions/extra-tests
|
uses: ./.github/actions/extra-tests
|
||||||
- name: Verify generated files are up to date
|
- name: Verify generated files are up to date
|
||||||
uses: ./.github/actions/verify-generated-files
|
uses: ./.github/actions/verify-generated-files
|
||||||
- name: Notify Slack
|
|
||||||
if: failure()
|
|
||||||
uses: ./.github/actions/notify-slack
|
|
||||||
with:
|
|
||||||
token: ${{ secrets.ACTION_MONITORING_SLACK }}
|
|
||||||
COVERAGE_DEBUG_NTS:
|
COVERAGE_DEBUG_NTS:
|
||||||
if: inputs.branch == 'master'
|
if: inputs.branch == 'master'
|
||||||
services:
|
services:
|
||||||
@@ -483,11 +462,6 @@ jobs:
|
|||||||
fail_ci_if_error: true
|
fail_ci_if_error: true
|
||||||
token: ${{ secrets.CODECOV_TOKEN }}
|
token: ${{ secrets.CODECOV_TOKEN }}
|
||||||
verbose: true
|
verbose: true
|
||||||
- name: Notify Slack
|
|
||||||
if: failure()
|
|
||||||
uses: ./.github/actions/notify-slack
|
|
||||||
with:
|
|
||||||
token: ${{ secrets.ACTION_MONITORING_SLACK }}
|
|
||||||
COMMUNITY:
|
COMMUNITY:
|
||||||
strategy:
|
strategy:
|
||||||
fail-fast: false
|
fail-fast: false
|
||||||
@@ -674,11 +648,6 @@ jobs:
|
|||||||
if [ $EXIT_CODE -gt 128 ]; then
|
if [ $EXIT_CODE -gt 128 ]; then
|
||||||
exit 1
|
exit 1
|
||||||
fi
|
fi
|
||||||
- name: Notify Slack
|
|
||||||
if: failure()
|
|
||||||
uses: ./.github/actions/notify-slack
|
|
||||||
with:
|
|
||||||
token: ${{ secrets.ACTION_MONITORING_SLACK }}
|
|
||||||
OPCACHE_VARIATION:
|
OPCACHE_VARIATION:
|
||||||
services:
|
services:
|
||||||
mysql:
|
mysql:
|
||||||
@@ -760,11 +729,6 @@ jobs:
|
|||||||
-d opcache.file_cache_only=1
|
-d opcache.file_cache_only=1
|
||||||
- name: Verify generated files are up to date
|
- name: Verify generated files are up to date
|
||||||
uses: ./.github/actions/verify-generated-files
|
uses: ./.github/actions/verify-generated-files
|
||||||
- name: Notify Slack
|
|
||||||
if: failure()
|
|
||||||
uses: ./.github/actions/notify-slack
|
|
||||||
with:
|
|
||||||
token: ${{ secrets.ACTION_MONITORING_SLACK }}
|
|
||||||
MSAN:
|
MSAN:
|
||||||
name: MSAN
|
name: MSAN
|
||||||
runs-on: ubuntu-${{ inputs.ubuntu_version }}
|
runs-on: ubuntu-${{ inputs.ubuntu_version }}
|
||||||
@@ -851,11 +815,6 @@ jobs:
|
|||||||
-d opcache.enable_cli=1
|
-d opcache.enable_cli=1
|
||||||
- name: Verify generated files are up to date
|
- name: Verify generated files are up to date
|
||||||
uses: ./.github/actions/verify-generated-files
|
uses: ./.github/actions/verify-generated-files
|
||||||
- name: Notify Slack
|
|
||||||
if: failure()
|
|
||||||
uses: ./.github/actions/notify-slack
|
|
||||||
with:
|
|
||||||
token: ${{ secrets.ACTION_MONITORING_SLACK }}
|
|
||||||
LIBMYSQLCLIENT:
|
LIBMYSQLCLIENT:
|
||||||
name: LIBMYSQLCLIENT
|
name: LIBMYSQLCLIENT
|
||||||
runs-on: ubuntu-${{ inputs.ubuntu_version }}
|
runs-on: ubuntu-${{ inputs.ubuntu_version }}
|
||||||
@@ -898,11 +857,6 @@ jobs:
|
|||||||
withMysqli: ${{ inputs.libmysqlclient_with_mysqli }}
|
withMysqli: ${{ inputs.libmysqlclient_with_mysqli }}
|
||||||
- name: Verify generated files are up to date
|
- name: Verify generated files are up to date
|
||||||
uses: ./.github/actions/verify-generated-files
|
uses: ./.github/actions/verify-generated-files
|
||||||
- name: Notify Slack
|
|
||||||
if: failure()
|
|
||||||
uses: ./.github/actions/notify-slack
|
|
||||||
with:
|
|
||||||
token: ${{ secrets.ACTION_MONITORING_SLACK }}
|
|
||||||
PECL:
|
PECL:
|
||||||
if: inputs.branch == 'master'
|
if: inputs.branch == 'master'
|
||||||
runs-on: ubuntu-22.04
|
runs-on: ubuntu-22.04
|
||||||
@@ -1010,11 +964,6 @@ jobs:
|
|||||||
/opt/php/bin/phpize
|
/opt/php/bin/phpize
|
||||||
./configure --prefix=/opt/php --with-php-config=/opt/php/bin/php-config
|
./configure --prefix=/opt/php --with-php-config=/opt/php/bin/php-config
|
||||||
make -j$(/usr/bin/nproc)
|
make -j$(/usr/bin/nproc)
|
||||||
- name: Notify Slack
|
|
||||||
if: failure()
|
|
||||||
uses: ./.github/actions/notify-slack
|
|
||||||
with:
|
|
||||||
token: ${{ secrets.ACTION_MONITORING_SLACK }}
|
|
||||||
WINDOWS:
|
WINDOWS:
|
||||||
strategy:
|
strategy:
|
||||||
fail-fast: false
|
fail-fast: false
|
||||||
|
|||||||
5
.github/workflows/root.yml
vendored
5
.github/workflows/root.yml
vendored
@@ -31,11 +31,6 @@ jobs:
|
|||||||
- name: Generate Matrix
|
- name: Generate Matrix
|
||||||
id: set-matrix
|
id: set-matrix
|
||||||
run: php .github/nightly_matrix.php "${{ github.event_name }}" "${{ github.run_attempt }}" "${{ github.head_ref || github.ref_name }}"
|
run: php .github/nightly_matrix.php "${{ github.event_name }}" "${{ github.run_attempt }}" "${{ github.head_ref || github.ref_name }}"
|
||||||
- name: Notify Slack
|
|
||||||
if: failure()
|
|
||||||
uses: ./.github/actions/notify-slack
|
|
||||||
with:
|
|
||||||
token: ${{ secrets.ACTION_MONITORING_SLACK }}
|
|
||||||
NIGHTLY:
|
NIGHTLY:
|
||||||
needs: GENERATE_MATRIX
|
needs: GENERATE_MATRIX
|
||||||
name: ${{ matrix.branch.ref }}
|
name: ${{ matrix.branch.ref }}
|
||||||
|
|||||||
Reference in New Issue
Block a user