Skip to content

Commit

Permalink
ci: add workflow for reporting possible state-changing diffs (cosmos#…
Browse files Browse the repository at this point in the history
…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 cosmos#13518

Signed-off-by: Elias Naur <[email protected]>

Signed-off-by: Elias Naur <[email protected]>
Co-authored-by: Marko <[email protected]>
  • 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.