This is an automated email from the ASF dual-hosted git repository. pascalschumacher pushed a commit to branch master in repository https://gitbox.apache.org/repos/asf/camel.git
The following commit(s) were added to refs/heads/master by this push: new ba3ced5 Reduce github actions build to just checkstyle. Cache maven repository to speed-up github actions build. ba3ced5 is described below commit ba3ced5d3c5fa6522740600bb4c0f92555ebfb62 Author: Pascal Schumacher <pascalschumac...@gmx.net> AuthorDate: Sun Apr 12 20:20:21 2020 +0200 Reduce github actions build to just checkstyle. Cache maven repository to speed-up github actions build. --- .github/workflows/master-pr-build.yml | 10 ++++++++-- .github/workflows/master-push-build.yml | 10 ++++++++-- 2 files changed, 16 insertions(+), 4 deletions(-) diff --git a/.github/workflows/master-pr-build.yml b/.github/workflows/master-pr-build.yml index 22d6bfe..0548054 100644 --- a/.github/workflows/master-pr-build.yml +++ b/.github/workflows/master-pr-build.yml @@ -26,12 +26,18 @@ jobs: runs-on: ubuntu-latest strategy: matrix: - java: [ '1.8', '11' ] + java: [ '1.8' ] steps: - uses: actions/checkout@v1 - name: Set up JDK ${{ matrix.java }} uses: actions/setup-java@v1 with: java-version: ${{ matrix.java }} + - name: Cache Maven Repository + uses: actions/cache@v1 + with: + path: ~/.m2 + key: ${{ runner.os }}-m2-${{ hashFiles('**/pom.xml') }} + restore-keys: ${{ runner.os }}-m2 - name: mvn sourcecheck - run: ./mvnw -V --no-transfer-progress clean install -DskipTests --projects org.apache.camel:camel-buildtools && ./mvnw -V --no-transfer-progress -Psourcecheck -DskipTests -Dcheckstyle.failOnViolation=true -pl '!org.apache.camel:apache-camel' clean verify + run: ./mvnw -V --no-transfer-progress -Psourcecheck -Dcheckstyle.failOnViolation=true checkstyle:checkstyle diff --git a/.github/workflows/master-push-build.yml b/.github/workflows/master-push-build.yml index d434dcc..9eb4b91 100644 --- a/.github/workflows/master-push-build.yml +++ b/.github/workflows/master-push-build.yml @@ -26,12 +26,18 @@ jobs: runs-on: ubuntu-latest strategy: matrix: - java: [ '1.8', '11' ] + java: [ '1.8' ] steps: - uses: actions/checkout@v1 - name: Set up JDK ${{ matrix.java }} uses: actions/setup-java@v1 with: java-version: ${{ matrix.java }} + - name: Cache Maven Repository + uses: actions/cache@v1 + with: + path: ~/.m2 + key: ${{ runner.os }}-m2-${{ hashFiles('**/pom.xml') }} + restore-keys: ${{ runner.os }}-m2 - name: mvn sourcecheck - run: ./mvnw -V --no-transfer-progress clean install -DskipTests --projects org.apache.camel:camel-buildtools && ./mvnw -V --no-transfer-progress -Psourcecheck -DskipTests -Dcheckstyle.failOnViolation=true -pl '!org.apache.camel:apache-camel' clean verify + run: ./mvnw -V --no-transfer-progress -Psourcecheck -Dcheckstyle.failOnViolation=true -pl checkstyle:checkstyle