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:
Elias Naur 2022-11-27 05:49:30 -06:00 committed by GitHub
parent ffb0e29179
commit 60fdbd044f
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

19
.github/workflows/statediff.yml vendored Normal file
View 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'