Skip to content

Commit

Permalink
ci: add workflow for reporting possible state-changing diffs (#13774)
Browse files Browse the repository at this point in the history
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>
  • Loading branch information
elias-orijtech and tac0turtle authored Nov 27, 2022
1 parent ffb0e29 commit 60fdbd0
Showing 1 changed file with 19 additions and 0 deletions.
19 changes: 19 additions & 0 deletions .github/workflows/statediff.yml
Original file line number Diff line number Diff line change
@@ -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'

0 comments on commit 60fdbd0

Please sign in to comment.