Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
18 changes: 15 additions & 3 deletions .github/workflows/multi-arch-test-build.yml
Original file line number Diff line number Diff line change
@@ -1,15 +1,27 @@
name: Test and Build

on:
check_suite:
types: [completed]
pull_request:

Comment on lines 3 to 5

Copy link
Copy Markdown
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

permissions:
contents: read
pull-requests: write
checks: read

jobs:
wait-for-formalities:
name: Wait for FormalityCheck
runs-on: ubuntu-slim
steps:
Comment on lines +12 to +15

Copy link
Copy Markdown
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I don't think it makes sense to add timeout-minutes: 30 here:

- 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'

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Where is FormalityCheck / Git & Commits coming from?

Copy link
Copy Markdown
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

It's a new thing that I introduced in cooperation with @Ansuel. It will be publicly available to see in this repo https://github.com/openwrt/openwrt-bot-worker shortly. It's an integrated webhook that gives you almost instant feedback. I originally wanted to write it as a PHP script, but it's done in JavaScript.

Compared to using a GitHub runner, it's incredibly fast because it doesn't have to wait for a runner to boot up or for available runner capacity. Right after creating a pull request, the user gets feedback based on three checks, which I'd like to expand in the future. Essentially, it does the same thing as your HyperStickler, but it's much more powerful and modular.

What you're looking for is right here:
https://github.com/openwrt/openwrt-bot-worker/blob/96551fca7cda708512c1af0459d46b152d00c223/cloudflare-worker/src/index.js#L304

repo-token: ${{ secrets.GITHUB_TOKEN }}
wait-interval: 5

build:
name: Feeds Package Test Build
if: ${{ github.event.check_suite.conclusion == 'success' }}
needs: wait-for-formalities
uses: openwrt/actions-shared-workflows/.github/workflows/multi-arch-test-build.yml@main
Loading