1
0
Fork 0

Add CI
Some checks failed
CI / test (push) Failing after 7s

This commit is contained in:
Miguel Jacq 2025-12-09 15:35:29 +11:00
parent 2aafefafb2
commit 6ae6866b15
Signed by: mig5
GPG key ID: 59B3F0C24135C6A9
2 changed files with 110 additions and 0 deletions

29
.forgejo/workflows/ci.yml Normal file
View file

@ -0,0 +1,29 @@
name: CI
on:
push:
jobs:
test:
runs-on: docker
steps:
- name: Checkout
uses: actions/checkout@v4
- name: Build and test a couple of PHP versions on Debian 13
run: scripts/ci.sh
# Notify if any previous step in this job failed
- name: Notify on failure
if: ${{ failure() }}
env:
WEBHOOK_URL: ${{ secrets.NODERED_WEBHOOK_URL }}
REPOSITORY: ${{ forgejo.repository }}
RUN_NUMBER: ${{ forgejo.run_number }}
SERVER_URL: ${{ forgejo.server_url }}
run: |
curl -X POST \
-H "Content-Type: application/json" \
-d "{\"repository\":\"$REPOSITORY\",\"run_number\":\"$RUN_NUMBER\",\"status\":\"failure\",\"url\":\"$SERVER_URL/$REPOSITORY/actions/runs/$RUN_NUMBER\"}" \
"$WEBHOOK_URL"