ci: add workflow for reporting possible state-changing diffs (#13774)
The workflow uses the new github.com/orijtech/statediff tool that builds a callgraph from a set of root methods and functions, and checks whether a patch touches it. Fixes #13518 Signed-off-by: Elias Naur <elias@orijtech.com> Signed-off-by: Elias Naur <elias@orijtech.com> Co-authored-by: Marko <marbar3778@yahoo.com>
This commit is contained in:
parent
ffb0e29179
commit
60fdbd044f
19
.github/workflows/statediff.yml
vendored
Normal file
19
.github/workflows/statediff.yml
vendored
Normal file
@ -0,0 +1,19 @@
|
||||
name: "Warn about consensus code changes"
|
||||
|
||||
on:
|
||||
pull_request_target:
|
||||
types:
|
||||
- opened
|
||||
- edited
|
||||
- synchronize
|
||||
|
||||
jobs:
|
||||
main:
|
||||
permissions:
|
||||
pull-requests: write # For reading the PR and posting comment
|
||||
runs-on: ubuntu-latest
|
||||
steps:
|
||||
- uses: actions/checkout@v3
|
||||
- uses: orijtech/statediff@main
|
||||
with:
|
||||
roots: 'github.com/cosmos/cosmos-sdk/baseapp.BaseApp.DeliverTx,github.com/cosmos/cosmos-sdk/baseapp.BaseApp.BeginBlock,github.com/cosmos/cosmos-sdk/baseapp.BaseApp.EndBlock,github.com/cosmos/cosmos-sdk/baseapp.BaseApp.Commit'
|
||||
Loading…
Reference in New Issue
Block a user