cosmos-sdk/.github/workflows/statediff.yml
Elias Naur 60fdbd044f
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>
2022-11-27 11:49:30 +00:00

20 lines
591 B
YAML

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'