File tree Expand file tree Collapse file tree 2 files changed +44
-83
lines changed Expand file tree Collapse file tree 2 files changed +44
-83
lines changed Original file line number Diff line number Diff line change
1
+ name : Check compatibility
2
+
3
+ on :
4
+ pull_request :
5
+
6
+ jobs :
7
+ check-compatibility :
8
+ runs-on : ubuntu-latest
9
+
10
+ steps :
11
+ - name : Checkout the PR
12
+ uses : actions/checkout@v3
13
+
14
+ - uses : actions/setup-python@v4
15
+ with :
16
+ python-version : " 3.10"
17
+
18
+ - name : Extract PR public interfaces
19
+ run : |
20
+ make init
21
+ bin/public_interface.py extract > "${{ runner.temp }}"/interfaces.new.json
22
+
23
+ - name : Backup PR bin/public_interface.py
24
+ run : |
25
+ # Keep a copy of bin/public_interface.py
26
+ # So we are using the same bin/public_interface.py to process old/new codebase.
27
+ cp bin/public_interface.py "${{ runner.temp }}"/public_interface.py
28
+
29
+ - name : Checkout the base
30
+ uses : actions/checkout@v3
31
+ with :
32
+ ref : " ${{ github.base_ref }}"
33
+
34
+ - name : Extract original public interfaces
35
+ run : |
36
+ make init
37
+ # Recover bin/public_interface.py
38
+ cp "${{ runner.temp }}"/public_interface.py bin/public_interface.py
39
+ bin/public_interface.py extract > "${{ runner.temp }}"/interfaces.original.json
40
+
41
+ - name : Detect compatibility breaking changes
42
+ id : detect
43
+ run : |
44
+ bin/public_interface.py check "${{ runner.temp }}"/interfaces.original.json "${{ runner.temp }}"/interfaces.new.json
Load Diff This file was deleted.
You can’t perform that action at this time.
0 commit comments