Simplify test-recent-extensions error notifications (temp)
parent
8e6e7c4301
commit
cffbb5c348
|
@ -13,11 +13,17 @@ jobs:
|
||||||
name: Determine extension list
|
name: Determine extension list
|
||||||
runs-on: ubuntu-latest
|
runs-on: ubuntu-latest
|
||||||
steps:
|
steps:
|
||||||
- name: Checkout
|
-
|
||||||
|
name: Test failure
|
||||||
|
run: exit 1
|
||||||
|
-
|
||||||
|
name: Checkout
|
||||||
uses: actions/checkout@v4
|
uses: actions/checkout@v4
|
||||||
- name: Retrieve recently updated extensions
|
-
|
||||||
|
name: Retrieve recently updated extensions
|
||||||
run: ./scripts/ci-retrieve-recent-extensions >extensions-updated.txt
|
run: ./scripts/ci-retrieve-recent-extensions >extensions-updated.txt
|
||||||
- name: Filter supported extensions
|
-
|
||||||
|
name: Filter supported extensions
|
||||||
run: |
|
run: |
|
||||||
UPDATED_EXTENSIONS="$(cat extensions-updated.txt)"
|
UPDATED_EXTENSIONS="$(cat extensions-updated.txt)"
|
||||||
if test -z "$UPDATED_EXTENSIONS"; then
|
if test -z "$UPDATED_EXTENSIONS"; then
|
||||||
|
@ -26,7 +32,8 @@ jobs:
|
||||||
EXTENSIONS_TO_TEST="$(./scripts/ci-filter-supported-extensions "$UPDATED_EXTENSIONS")"
|
EXTENSIONS_TO_TEST="$(./scripts/ci-filter-supported-extensions "$UPDATED_EXTENSIONS")"
|
||||||
fi
|
fi
|
||||||
printf "$EXTENSIONS_TO_TEST" > extensions-to-test.txt
|
printf "$EXTENSIONS_TO_TEST" > extensions-to-test.txt
|
||||||
- name: Persist list of extensions to be tested
|
-
|
||||||
|
name: Persist list of extensions to be tested
|
||||||
uses: actions/upload-artifact@v4
|
uses: actions/upload-artifact@v4
|
||||||
with:
|
with:
|
||||||
name: artifact
|
name: artifact
|
||||||
|
@ -61,13 +68,16 @@ jobs:
|
||||||
env:
|
env:
|
||||||
IPETEST_DOCKER_DISTRO: ${{ matrix.distro }}
|
IPETEST_DOCKER_DISTRO: ${{ matrix.distro }}
|
||||||
steps:
|
steps:
|
||||||
- name: Checkout
|
-
|
||||||
|
name: Checkout
|
||||||
uses: actions/checkout@v4
|
uses: actions/checkout@v4
|
||||||
- name: Loading list of extensions to be tested
|
-
|
||||||
|
name: Loading list of extensions to be tested
|
||||||
uses: actions/download-artifact@v4
|
uses: actions/download-artifact@v4
|
||||||
with:
|
with:
|
||||||
name: artifact
|
name: artifact
|
||||||
- name: Test extensions
|
-
|
||||||
|
name: Test extensions
|
||||||
run: |
|
run: |
|
||||||
EXTENSIONS_TO_TEST="$(cat extensions-to-test.txt)"
|
EXTENSIONS_TO_TEST="$(cat extensions-to-test.txt)"
|
||||||
if test -z "$EXTENSIONS_TO_TEST"; then
|
if test -z "$EXTENSIONS_TO_TEST"; then
|
||||||
|
@ -75,10 +85,14 @@ jobs:
|
||||||
else
|
else
|
||||||
./scripts/ci-test-extensions from-list "$EXTENSIONS_TO_TEST"
|
./scripts/ci-test-extensions from-list "$EXTENSIONS_TO_TEST"
|
||||||
fi
|
fi
|
||||||
- name: Notify failures
|
notify-failures:
|
||||||
if: failure()
|
runs-on: ubuntu-latest
|
||||||
|
if: failure()
|
||||||
|
steps:
|
||||||
|
-
|
||||||
|
name: Send error notification
|
||||||
uses: appleboy/telegram-action@master
|
uses: appleboy/telegram-action@master
|
||||||
with:
|
with:
|
||||||
token: ${{ secrets.TELEGRAM_TOKEN }}
|
token: ${{ secrets.TELEGRAM_TOKEN }}
|
||||||
to: ${{ secrets.TELEGRAM_TO }}
|
to: ${{ secrets.TELEGRAM_TO }}
|
||||||
message: Testing recent PHP packages failed on https://github.com/mlocati/docker-php-extension-installer
|
message: Testing recent PHP packages failed - See https://github.com/mlocati/docker-php-extension-installer/actions/runs/${{ github.run_id }}
|
||||||
|
|
Loading…
Reference in New Issue