console项目 #23
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| name: Build | |
| on: | |
| push: | |
| branches: [ master, develop ] | |
| pull_request: | |
| branches: [ master, develop ] | |
| jobs: | |
| build: | |
| runs-on: ubuntu-latest | |
| strategy: | |
| matrix: | |
| java: [8, 17, 21] | |
| name: Build with Java ${{ matrix.java }} | |
| steps: | |
| - name: Checkout code | |
| uses: actions/checkout@v3 | |
| - name: Set up JDK ${{ matrix.java }} | |
| uses: actions/setup-java@v3 | |
| with: | |
| java-version: ${{ matrix.java }} | |
| distribution: 'temurin' | |
| cache: 'maven' | |
| - name: Build Parent Project | |
| run: mvn clean install -B -DskipTests -Dgpg.skip=true -f es-plus-parent/pom.xml | |
| - name: Build ES 7 Samples | |
| run: cd es-plus-samples && mvn compile -B -Dgpg.skip=true | |
| - name: Run FastTestDslTest (ES 7) | |
| run: cd es-plus-samples && mvn test -B -Dtest=FastTestDslTest -Dgpg.skip=true | |
| - name: Build ES 8 Samples (requires Java 17+) | |
| if: matrix.java != '8' | |
| run: cd es8-plus-samples && mvn compile -B -Dgpg.skip=true | |
| - name: Run FastTestDslTest (ES 8, requires Java 17+) | |
| if: matrix.java != '8' | |
| run: cd es8-plus-samples && mvn test -B -Dtest=FastTestDslTest -Dgpg.skip=true |