Get CI to check PRs have been signed-off (#16348)
This commit is contained in:
parent
9ee54c1370
commit
fad4c63d25
|
@ -12,6 +12,10 @@ concurrency:
|
||||||
cancel-in-progress: true
|
cancel-in-progress: true
|
||||||
|
|
||||||
jobs:
|
jobs:
|
||||||
|
check-signoff:
|
||||||
|
if: "github.event_name == 'pull_request'"
|
||||||
|
uses: "matrix-org/backend-meta/.github/workflows/sign-off.yml@v2"
|
||||||
|
|
||||||
# Job to detect what has changed so we don't run e.g. Rust checks on PRs that
|
# Job to detect what has changed so we don't run e.g. Rust checks on PRs that
|
||||||
# don't modify Rust code.
|
# don't modify Rust code.
|
||||||
changes:
|
changes:
|
||||||
|
@ -225,6 +229,7 @@ jobs:
|
||||||
- check-lockfile
|
- check-lockfile
|
||||||
- lint-clippy
|
- lint-clippy
|
||||||
- lint-rustfmt
|
- lint-rustfmt
|
||||||
|
- check-signoff
|
||||||
runs-on: ubuntu-latest
|
runs-on: ubuntu-latest
|
||||||
steps:
|
steps:
|
||||||
- run: "true"
|
- run: "true"
|
||||||
|
@ -627,9 +632,10 @@ jobs:
|
||||||
with:
|
with:
|
||||||
needs: ${{ toJSON(needs) }}
|
needs: ${{ toJSON(needs) }}
|
||||||
|
|
||||||
# The newsfile lint may be skipped on non PR builds
|
# The newsfile and signoff lints may be skipped on non PR builds
|
||||||
# Cargo test is skipped if there is no changes on Rust code
|
# Cargo test is skipped if there is no changes on Rust code
|
||||||
skippable: |
|
skippable: |
|
||||||
|
check-signoff
|
||||||
lint-newsfile
|
lint-newsfile
|
||||||
cargo-test
|
cargo-test
|
||||||
cargo-bench
|
cargo-bench
|
||||||
|
|
|
@ -0,0 +1 @@
|
||||||
|
Get CI to check PRs have been signed-off.
|
Loading…
Reference in New Issue