Skip to content

Commit

Permalink
ci: add workflow for reporting possible state-changing diffs
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>
  • Loading branch information
elias-orijtech committed Nov 10, 2022
1 parent d2e4154 commit 86b83ab
Showing 1 changed file with 21 additions and 0 deletions.
21 changes: 21 additions & 0 deletions .github/workflows/statediff.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,21 @@
name: "Warn on state changes"

on:
pull_request_target:
types:
- opened
- edited
- synchronize

permissions:
contents: read

jobs:
main:
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'
pull_request_url: "${{ github.server_url }}/${{ github.repository }}/pull/${{ github.event.pull_request.number }}.patch"

0 comments on commit 86b83ab

Please sign in to comment.