mirror of
https://github.com/TiddlyWiki/TiddlyWiki5.git
synced 2026-02-02 02:46:46 +00:00
ci: use v3 of cerebrus that also posts a build size report to PRs (#9048)
This commit is contained in:
18
.github/workflows/pr-check-build-size.yml
vendored
Normal file
18
.github/workflows/pr-check-build-size.yml
vendored
Normal file
@@ -0,0 +1,18 @@
|
||||
name: Calculate PR build size
|
||||
on:
|
||||
pull_request:
|
||||
types: [opened, reopened, synchronize]
|
||||
|
||||
jobs:
|
||||
calculate-build-size:
|
||||
runs-on: ubuntu-latest
|
||||
|
||||
steps:
|
||||
- name: Build and check size
|
||||
uses: saqimtiaz/cerebrus@v3
|
||||
with:
|
||||
pr_number: ${{ github.event.pull_request.number }}
|
||||
repo: ${{ github.repository }}
|
||||
base_ref: ${{ github.base_ref }}
|
||||
github_token: ${{ secrets.GITHUB_TOKEN }}
|
||||
mode: size:calc
|
||||
23
.github/workflows/pr-comment-build-size.yml
vendored
Normal file
23
.github/workflows/pr-comment-build-size.yml
vendored
Normal file
@@ -0,0 +1,23 @@
|
||||
name: Comment on PR build size (Trusted workflow)
|
||||
|
||||
on:
|
||||
repository_dispatch:
|
||||
types: [pr_build_size_report]
|
||||
|
||||
jobs:
|
||||
comment-build-size-on-pr:
|
||||
runs-on: ubuntu-latest
|
||||
permissions:
|
||||
pull-requests: write
|
||||
|
||||
steps:
|
||||
- name: Build and check size
|
||||
uses: TiddlyWiki/cerebrus@v3
|
||||
with:
|
||||
pr_number: ${{ github.event.client_payload.pr_number }}
|
||||
repo: ${{ github.repository }}
|
||||
base_ref: ${{ github.event.client_payload.base_branch }}
|
||||
github_token: ${{ secrets.GITHUB_TOKEN }}
|
||||
mode: size:comment
|
||||
pr_size: ${{ github.event.client_payload.pr_size }}
|
||||
base_size: ${{ github.event.client_payload.base_size }}
|
||||
2
.github/workflows/pr-path-validation.yml
vendored
2
.github/workflows/pr-path-validation.yml
vendored
@@ -10,7 +10,7 @@ jobs:
|
||||
|
||||
steps:
|
||||
- name: Validate PR
|
||||
uses: TiddlyWiki/cerebrus@v2
|
||||
uses: TiddlyWiki/cerebrus@v3
|
||||
with:
|
||||
pr_number: ${{ github.event.pull_request.number }}
|
||||
repo: ${{ github.repository }}
|
||||
|
||||
Reference in New Issue
Block a user