docker-php-extension-installer/.github/workflows/test-recent-extensions.yml

85 lines
2.5 KiB
YAML
Raw Permalink Normal View History

2020-02-21 12:10:49 +00:00
name: Test recent
on:
schedule:
2020-10-05 06:23:30 +00:00
- cron: "0 12 * * *"
2020-02-21 12:10:49 +00:00
repository_dispatch:
types:
- test-recent-extensions
workflow_dispatch:
2020-02-21 12:10:49 +00:00
jobs:
determine_extension_list:
name: Determine extension list
runs-on: ubuntu-latest
steps:
- name: Checkout
2024-06-24 10:03:47 +00:00
uses: actions/checkout@v4
2020-02-21 12:10:49 +00:00
- name: Retrieve recently updated extensions
run: ./scripts/ci-retrieve-recent-extensions >extensions-updated.txt
- name: Filter supported extensions
run: |
UPDATED_EXTENSIONS="$(cat extensions-updated.txt)"
if test -z "$UPDATED_EXTENSIONS"; then
EXTENSIONS_TO_TEST=''
else
EXTENSIONS_TO_TEST="$(./scripts/ci-filter-supported-extensions "$UPDATED_EXTENSIONS")"
fi
printf "$EXTENSIONS_TO_TEST" > extensions-to-test.txt
- name: Persist list of extensions to be tested
uses: actions/upload-artifact@v4
2020-02-21 12:10:49 +00:00
with:
name: artifact
path: extensions-to-test.txt
if-no-files-found: error
retention-days: 1
2020-02-21 12:10:49 +00:00
test_extensions:
runs-on: ubuntu-latest
needs: determine_extension_list
strategy:
fail-fast: false
2020-02-21 12:10:49 +00:00
matrix:
distro:
- alpine3.9
- alpine3.10
- alpine3.11
- alpine3.12
- alpine3.13
2021-06-19 10:25:26 +00:00
- alpine3.14
2021-12-05 15:49:11 +00:00
- alpine3.15
2022-06-06 13:38:26 +00:00
- alpine3.16
2023-01-22 10:33:20 +00:00
- alpine3.17
- alpine3.18
- alpine3.19
2024-07-10 08:45:46 +00:00
- alpine3.20
2020-02-21 12:10:49 +00:00
- jessie
- stretch
- buster
2021-08-24 14:02:49 +00:00
- bullseye
- bookworm
2020-02-21 12:10:49 +00:00
name: Check on ${{ matrix.distro }}
env:
IPETEST_DOCKER_DISTRO: ${{ matrix.distro }}
2020-02-21 12:10:49 +00:00
steps:
- name: Checkout
2024-06-24 10:03:47 +00:00
uses: actions/checkout@v4
2020-02-21 12:10:49 +00:00
- name: Loading list of extensions to be tested
uses: actions/download-artifact@v4
2020-02-21 12:10:49 +00:00
with:
name: artifact
- name: Test extensions
run: |
EXTENSIONS_TO_TEST="$(cat extensions-to-test.txt)"
2020-02-21 12:10:49 +00:00
if test -z "$EXTENSIONS_TO_TEST"; then
echo 'No extensions to be tested'
else
./scripts/ci-test-extensions from-list "$EXTENSIONS_TO_TEST"
fi
- name: Notify failures
if: failure()
uses: appleboy/telegram-action@master
with:
token: ${{ secrets.TELEGRAM_TOKEN }}
to: ${{ secrets.TELEGRAM_TO }}
message: Testing recent PHP packages failed on https://github.com/mlocati/docker-php-extension-installer