Skip to content

Commit

Permalink
ci: check update sesssion_py (IGinX-THU#531)
Browse files Browse the repository at this point in the history
* add ci to check whether py-session has been updated

* update pysession

---------

Co-authored-by: Yuqing Zhu <[email protected]>
  • Loading branch information
aqni and zhuyuqing authored Dec 31, 2024
1 parent 28fe153 commit dc387b2
Show file tree
Hide file tree
Showing 2 changed files with 22 additions and 0 deletions.
17 changes: 17 additions & 0 deletions .github/workflows/format-checker.yml
Original file line number Diff line number Diff line change
Expand Up @@ -19,3 +19,20 @@ jobs:
shell: bash
run: |
mvn clean license:check
py-session:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- uses: actions/setup-java@v4
with:
java-version: 8
distribution: temurin
cache: maven
- name: remove py-session thrift
working-directory: session_py
run: rm -rf iginx/iginx_pyclient/thrift
- name: generate py-session thrift
run: mvn clean compile -pl thrift,session_py -DskipTests
- name: check py-session difference
working-directory: session_py
run: git diff --minimal --exit-code
5 changes: 5 additions & 0 deletions pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -341,6 +341,11 @@
<argLine>-Dfile.encoding=UTF-8</argLine>
</configuration>
</plugin>
<plugin>
<groupId>org.apache.maven.plugins</groupId>
<artifactId>maven-antrun-plugin</artifactId>
<version>3.1.0</version>
</plugin>
<plugin>
<groupId>org.apache.maven.plugins</groupId>
<artifactId>maven-assembly-plugin</artifactId>
Expand Down

0 comments on commit dc387b2

Please sign in to comment.