Skip to content

Commit

Permalink
improve ci
Browse files Browse the repository at this point in the history
  • Loading branch information
EricJoy2048 committed Oct 26, 2022
1 parent 98fb7c4 commit b600c20
Showing 1 changed file with 25 additions and 14 deletions.
39 changes: 25 additions & 14 deletions .github/workflows/backend.yml
Original file line number Diff line number Diff line change
Expand Up @@ -270,19 +270,40 @@ jobs:
if: needs.changes.outputs.api == 'false'
run: |
echo ${{needs.changes.outputs.ut-modules}}
# ./mvnw -B -T 1C clean verify -D"maven.test.skip"=false -D"checkstyle.skip"=true -D"scalastyle.skip"=true -D"license.skipAddThirdParty"=true --no-snapshot-updates -pl ${{needs.changes.outputs.ut-modules}} -am -amd -Pno_dist
env:
MAVEN_OPTS: -Xmx2048m

integration-test:
needs: changes
runs-on: ubuntu-latest
needs: [ changes ]
runs-on: ${{ matrix.os }}
strategy:
matrix:
java: [ '8', '11' ]
os: [ 'ubuntu-latest' ]
timeout-minutes: 90
steps:
- uses: actions/checkout@v2
- name: Set up JDK ${{ matrix.java }}
uses: actions/setup-java@v3
with:
java-version: ${{ matrix.java }}
distribution: 'temurin'
cache: 'maven'
- name: run all modules integration test
if: needs.changes.outputs.api == 'true'
run: echo ""
run: |
./mvnw -T 1C -B verify -DskipUT=true -DskipIT=false -D"checkstyle.skip"=true -D"scalastyle.skip"=true -D"license.skipAddThirdParty"=true --no-snapshot-updates
env:
MAVEN_OPTS: -Xmx2048m

- name: run updated modules integration test
if: needs.changes.outputs.api == 'false'
run: |
echo ${{needs.changes.outputs.it-modules}}
# ./mvnw -T 1C -B verify -DskipUT=true -DskipIT=false -D"checkstyle.skip"=true -D"scalastyle.skip"=true -D"license.skipAddThirdParty"=true --no-snapshot-updates -pl ${{needs.changes.outputs.it-modules}} -am -amd -Pno_dist
env:
MAVEN_OPTS: -Xmx2048m


# dependency-license:
Expand Down Expand Up @@ -341,15 +362,5 @@ jobs:
# os: [ 'ubuntu-latest' ]
# timeout-minutes: 90
# steps:
# - uses: actions/checkout@v2
# - name: Set up JDK ${{ matrix.java }}
# uses: actions/setup-java@v3
# with:
# java-version: ${{ matrix.java }}
# distribution: 'temurin'
# cache: 'maven'

# - name: Run Integration tests
# run: |
# ./mvnw -T 1C -B verify -DskipUT=true -DskipIT=false -D"checkstyle.skip"=true -D"scalastyle.skip"=true -D"license.skipAddThirdParty"=true --no-snapshot-updates
# env:
# MAVEN_OPTS: -Xmx2048m

0 comments on commit b600c20

Please sign in to comment.