mirror of
https://github.com/openwrt/luci.git
synced 2026-07-14 02:54:28 +04:00
5606383b19
Replace the external formality check GitHub Action with a lightweight webhook managed by the openwrt-bot-worker engine. Using a webhook instead of a heavy GitHub Action workflow is much more suitable for quick formality checks. GitHub Actions are constrained by concurrency limits across repositories, often causing long delays. In contrast, the webhook validates commits near-instantly. The validation rules are configured via `.github/formalities.json`. Since verifying `PKG_VERSION`, `PKG_RELEASE`, and mandatory release notes are not relevant for the LuCI repository (unlike packages), these checks are disabled. Additionally, the formality check is now a hard requirement. The build workflow will only run once the formality check passes, saving runner resources. Signed-off-by: Josef Schlehofer <pepe.schlehofer@gmail.com>
28 lines
685 B
YAML
28 lines
685 B
YAML
name: Test Build
|
|
|
|
on:
|
|
pull_request:
|
|
|
|
permissions:
|
|
contents: read
|
|
checks: read
|
|
|
|
jobs:
|
|
wait-for-formalities:
|
|
name: Wait for FormalityCheck
|
|
runs-on: ubuntu-slim
|
|
steps:
|
|
- name: Wait for Check Run
|
|
uses: lewagon/wait-on-check-action@v1.8.0
|
|
with:
|
|
ref: ${{ github.event.pull_request.head.sha }}
|
|
check-name: 'FormalityCheck / Git & Commits'
|
|
repo-token: ${{ secrets.GITHUB_TOKEN }}
|
|
wait-interval: 5
|
|
|
|
build:
|
|
needs: wait-for-formalities
|
|
uses: openwrt/actions-shared-workflows/.github/workflows/multi-arch-test-build.yml@main
|
|
with:
|
|
matrix: '{"include": [{"arch": "x86_64", "target": "x86-64"}]}'
|