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
|
||||
- name: 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:
|
||||
services:
|
||||
mysql:
|
||||
@@ -272,11 +266,6 @@ jobs:
|
||||
uses: ./.github/actions/extra-tests
|
||||
- name: Verify generated files are up to date
|
||||
uses: ./.github/actions/verify-generated-files
|
||||
- name: Notify Slack
|
||||
if: failure()
|
||||
uses: ./.github/actions/notify-slack
|
||||
with:
|
||||
token: ${{ secrets.ACTION_MONITORING_SLACK }}
|
||||
LINUX_X32:
|
||||
strategy:
|
||||
fail-fast: false
|
||||
@@ -358,11 +347,6 @@ jobs:
|
||||
-d opcache.enable_cli=1
|
||||
- name: Extra tests
|
||||
uses: ./.github/actions/extra-tests
|
||||
- name: Notify Slack
|
||||
if: failure()
|
||||
uses: ./.github/actions/notify-slack
|
||||
with:
|
||||
token: ${{ secrets.ACTION_MONITORING_SLACK }}
|
||||
MACOS:
|
||||
strategy:
|
||||
fail-fast: false
|
||||
@@ -418,11 +402,6 @@ jobs:
|
||||
uses: ./.github/actions/extra-tests
|
||||
- name: Verify generated files are up to date
|
||||
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:
|
||||
if: inputs.branch == 'master'
|
||||
services:
|
||||
@@ -483,11 +462,6 @@ jobs:
|
||||
fail_ci_if_error: true
|
||||
token: ${{ secrets.CODECOV_TOKEN }}
|
||||
verbose: true
|
||||
- name: Notify Slack
|
||||
if: failure()
|
||||
uses: ./.github/actions/notify-slack
|
||||
with:
|
||||
token: ${{ secrets.ACTION_MONITORING_SLACK }}
|
||||
COMMUNITY:
|
||||
strategy:
|
||||
fail-fast: false
|
||||
@@ -674,11 +648,6 @@ jobs:
|
||||
if [ $EXIT_CODE -gt 128 ]; then
|
||||
exit 1
|
||||
fi
|
||||
- name: Notify Slack
|
||||
if: failure()
|
||||
uses: ./.github/actions/notify-slack
|
||||
with:
|
||||
token: ${{ secrets.ACTION_MONITORING_SLACK }}
|
||||
OPCACHE_VARIATION:
|
||||
services:
|
||||
mysql:
|
||||
@@ -760,11 +729,6 @@ jobs:
|
||||
-d opcache.file_cache_only=1
|
||||
- name: Verify generated files are up to date
|
||||
uses: ./.github/actions/verify-generated-files
|
||||
- name: Notify Slack
|
||||
if: failure()
|
||||
uses: ./.github/actions/notify-slack
|
||||
with:
|
||||
token: ${{ secrets.ACTION_MONITORING_SLACK }}
|
||||
MSAN:
|
||||
name: MSAN
|
||||
runs-on: ubuntu-${{ inputs.ubuntu_version }}
|
||||
@@ -851,11 +815,6 @@ jobs:
|
||||
-d opcache.enable_cli=1
|
||||
- name: Verify generated files are up to date
|
||||
uses: ./.github/actions/verify-generated-files
|
||||
- name: Notify Slack
|
||||
if: failure()
|
||||
uses: ./.github/actions/notify-slack
|
||||
with:
|
||||
token: ${{ secrets.ACTION_MONITORING_SLACK }}
|
||||
LIBMYSQLCLIENT:
|
||||
name: LIBMYSQLCLIENT
|
||||
runs-on: ubuntu-${{ inputs.ubuntu_version }}
|
||||
@@ -898,11 +857,6 @@ jobs:
|
||||
withMysqli: ${{ inputs.libmysqlclient_with_mysqli }}
|
||||
- name: Verify generated files are up to date
|
||||
uses: ./.github/actions/verify-generated-files
|
||||
- name: Notify Slack
|
||||
if: failure()
|
||||
uses: ./.github/actions/notify-slack
|
||||
with:
|
||||
token: ${{ secrets.ACTION_MONITORING_SLACK }}
|
||||
PECL:
|
||||
if: inputs.branch == 'master'
|
||||
runs-on: ubuntu-22.04
|
||||
@@ -1010,11 +964,6 @@ jobs:
|
||||
/opt/php/bin/phpize
|
||||
./configure --prefix=/opt/php --with-php-config=/opt/php/bin/php-config
|
||||
make -j$(/usr/bin/nproc)
|
||||
- name: Notify Slack
|
||||
if: failure()
|
||||
uses: ./.github/actions/notify-slack
|
||||
with:
|
||||
token: ${{ secrets.ACTION_MONITORING_SLACK }}
|
||||
WINDOWS:
|
||||
strategy:
|
||||
fail-fast: false
|
||||
|
||||
5
.github/workflows/root.yml
vendored
5
.github/workflows/root.yml
vendored
@@ -31,11 +31,6 @@ jobs:
|
||||
- name: Generate Matrix
|
||||
id: set-matrix
|
||||
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:
|
||||
needs: GENERATE_MATRIX
|
||||
name: ${{ matrix.branch.ref }}
|
||||
|
||||
Reference in New Issue
Block a user