diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml index 90ff499a4a3..4e94ddbce21 100644 --- a/.github/workflows/ci.yml +++ b/.github/workflows/ci.yml @@ -7,26 +7,6 @@ on: pull_request: jobs: - StyleAndLicense: - name: Check style´and license conformity - runs-on: ubuntu-latest - steps: - - name: Checkout - uses: actions/checkout@v2 - - name: Use Java 8 - uses: actions/setup-java@v1 - with: - java-version: '8' - - name: Stylecheck - if: always() - run: | - bash ASM/build-project.sh - mvn -B clean checkstyle:check -Dcheckstyle.failOnViolation=true - - name: Licensecheck - if: always() - run: | - mvn -B clean license:check-file-header -Dlicence-check.failOnMissingHeader=true - BuildAndTest: name: Build and Test with java ${{ matrix.java_version }} runs-on: ubuntu-latest @@ -43,10 +23,12 @@ jobs: java-version: ${{ matrix.java_version }} - name: Build and test Java ${{ matrix.java_version }} run: | + bash ASM/build-project.sh mvn -B clean test -PJava${{ matrix.java_version }} - name: Build Release if: startsWith(github.ref, 'refs/tags/') run: | + bash ASM/build-project.sh mvn clean compile assembly:single source:jar - name: Release uses: softprops/action-gh-release@v1