File tree Expand file tree Collapse file tree 2 files changed +29
-3
lines changed
src/main/java/com/bumpsh/demo Expand file tree Collapse file tree 2 files changed +29
-3
lines changed Original file line number Diff line number Diff line change 39
39
token : ${{secrets.BUMP_TOKEN}}
40
40
file : http://localhost:8080/openapi
41
41
42
+ api-diff :
43
+ if : ${{ github.event_name == 'pull_request' }}
44
+ name : Check API diff on Bump.sh
45
+ runs-on : ubuntu-latest
46
+ steps :
47
+ - name : Checkout
48
+ uses : actions/checkout@v4
42
49
43
-
50
+ - name : Set up JDK
51
+ uses : actions/setup-java@v2
52
+ with :
53
+ distribution : ' temurin'
54
+ java-version : ' 21'
55
+
56
+ - name : Build and run the application
57
+ run : |
58
+ mvn clean spring-boot:run &
59
+
60
+ - name : Wait for the application to start
61
+ run : sleep 30
62
+ - name : Comment pull request with API diff
63
+ uses : bump-sh/github-action@v1
64
+ with :
65
+ doc : spring-code-first
66
+ token : ${{secrets.BUMP_TOKEN}}
67
+ file : http://localhost:8080/openapi
68
+ command : diff
69
+ env :
70
+ GITHUB_TOKEN : ${{secrets.GITHUB_TOKEN}}
Original file line number Diff line number Diff line change @@ -23,8 +23,7 @@ class Employee {
23
23
@ Schema (description = "Employee name" , example = "Bilbo Baggins" )
24
24
private String name ;
25
25
26
- @ Schema (description = "Employee role" , example = "Software Engineer" , deprecated = true )
27
- @ Deprecated
26
+ @ Schema (description = "Employee role" , example = "Software Engineer" )
28
27
private String role ;
29
28
30
29
Employee () {}
You can’t perform that action at this time.
0 commit comments