This is an automated email from the ASF dual-hosted git repository. acosentino pushed a commit to branch master in repository https://gitbox.apache.org/repos/asf/camel-quarkus.git
The following commit(s) were added to refs/heads/master by this push: new ff8ab6d Add GitHub action for automatic testing of camel master branch new 3ab385a Merge pull request #677 from jamesnetherton/ci-schedule ff8ab6d is described below commit ff8ab6dc287bfa2a1e1496697638adef4e168151 Author: James Netherton <jamesnether...@gmail.com> AuthorDate: Fri Jan 31 10:22:19 2020 +0000 Add GitHub action for automatic testing of camel master branch --- .github/workflows/pr-build.yaml | 91 +++++++++++++++++++------ .github/workflows/sync-camel-master-branch.yaml | 38 +++++++++++ 2 files changed, 108 insertions(+), 21 deletions(-) diff --git a/.github/workflows/pr-build.yaml b/.github/workflows/pr-build.yaml index fa071d7..6867658 100644 --- a/.github/workflows/pr-build.yaml +++ b/.github/workflows/pr-build.yaml @@ -21,6 +21,7 @@ on: pull_request: branches: - master + - camel-master env: LANG: en_US @@ -29,6 +30,10 @@ jobs: build: runs-on: ubuntu-latest steps: + - name: Set BRANCH_OPTIONS + if: github.base_ref == 'camel-master' + run: | + echo '::set-env name=BRANCH_OPTIONS::-Papache-snapshots' - name: Checkout uses: actions/checkout@v2 - name: Set Up Java @@ -37,7 +42,7 @@ jobs: java-version: 1.8 - name: Build Project run: | - ./mvnw -V -B \ + ./mvnw -V -B ${BRANCH_OPTIONS} \ -Dorg.slf4j.simpleLogger.log.org.apache.maven.cli.transfer.Slf4jMavenTransferListener=warn \ clean install - name: Save Cache @@ -53,20 +58,28 @@ jobs: matrix: java: [ '11' , '12' ] steps: - - uses: actions/checkout@v2 - - name: Set up JDK ${{ matrix.java }} - uses: actions/setup-java@v1 - with: - java-version: ${{ matrix.java }} - - name: Build on ${{ matrix.java }} - run: | - ./mvnw -V -B \ - -Dorg.slf4j.simpleLogger.log.org.apache.maven.cli.transfer.Slf4jMavenTransferListener=warn \ - clean verify + - name: Set BRANCH_OPTIONS + if: github.base_ref == 'camel-master' + run: | + echo '::set-env name=BRANCH_OPTIONS::-Papache-snapshots' + - uses: actions/checkout@v2 + - name: Set up JDK ${{ matrix.java }} + uses: actions/setup-java@v1 + with: + java-version: ${{ matrix.java }} + - name: Build on ${{ matrix.java }} + run: | + ./mvnw -V -B ${BRANCH_OPTIONS} \ + -Dorg.slf4j.simpleLogger.log.org.apache.maven.cli.transfer.Slf4jMavenTransferListener=warn \ + clean verify core: runs-on: ubuntu-latest needs: build steps: + - name: Set BRANCH_OPTIONS + if: github.base_ref == 'camel-master' + run: | + echo '::set-env name=BRANCH_OPTIONS::-Papache-snapshots' - name: Checkout uses: actions/checkout@v2 - name: Set Up Java @@ -82,7 +95,7 @@ jobs: maven-${{ github.sha }} - name: Integration Tests run: | - ./mvnw -V -B \ + ./mvnw -V -B ${BRANCH_OPTIONS} \ -Dorg.slf4j.simpleLogger.log.org.apache.maven.cli.transfer.Slf4jMavenTransferListener=warn clean verify \ -Dnative \ -Ddocker \ @@ -96,6 +109,10 @@ jobs: runs-on: ubuntu-latest needs: build steps: + - name: Set BRANCH_OPTIONS + if: github.base_ref == 'camel-master' + run: | + echo '::set-env name=BRANCH_OPTIONS::-Papache-snapshots' - name: Checkout uses: actions/checkout@v2 - name: Set Up Java @@ -111,7 +128,7 @@ jobs: maven-${{ github.sha }} - name: Integration Tests run: | - ./mvnw -V -B \ + ./mvnw -V -B ${BRANCH_OPTIONS} \ -Dorg.slf4j.simpleLogger.log.org.apache.maven.cli.transfer.Slf4jMavenTransferListener=warn clean verify \ -Dnative \ -Ddocker \ @@ -128,6 +145,10 @@ jobs: runs-on: ubuntu-latest needs: build steps: + - name: Set BRANCH_OPTIONS + if: github.base_ref == 'camel-master' + run: | + echo '::set-env name=BRANCH_OPTIONS::-Papache-snapshots' - name: Checkout uses: actions/checkout@v2 - name: Set Up Java @@ -143,7 +164,7 @@ jobs: maven-${{ github.sha }} - name: Integration Tests run: | - ./mvnw -V -B \ + ./mvnw -V -B ${BRANCH_OPTIONS} \ -Dorg.slf4j.simpleLogger.log.org.apache.maven.cli.transfer.Slf4jMavenTransferListener=warn clean verify \ -Dnative \ -Ddocker \ @@ -156,6 +177,10 @@ jobs: runs-on: ubuntu-latest needs: build steps: + - name: Set BRANCH_OPTIONS + if: github.base_ref == 'camel-master' + run: | + echo '::set-env name=BRANCH_OPTIONS::-Papache-snapshots' - name: Checkout uses: actions/checkout@v2 - name: Set Up Java @@ -171,7 +196,7 @@ jobs: maven-${{ github.sha }} - name: Integration Tests run: | - ./mvnw -V -B \ + ./mvnw -V -B ${BRANCH_OPTIONS} \ -Dorg.slf4j.simpleLogger.log.org.apache.maven.cli.transfer.Slf4jMavenTransferListener=warn clean verify \ -Dnative \ -Ddocker \ @@ -183,6 +208,10 @@ jobs: runs-on: ubuntu-latest needs: build steps: + - name: Set BRANCH_OPTIONS + if: github.base_ref == 'camel-master' + run: | + echo '::set-env name=BRANCH_OPTIONS::-Papache-snapshots' - name: Checkout uses: actions/checkout@v2 - name: Set Up Java @@ -198,7 +227,7 @@ jobs: maven-${{ github.sha }} - name: Integration Tests run: | - ./mvnw -V -B \ + ./mvnw -V -B ${BRANCH_OPTIONS} \ -Dorg.slf4j.simpleLogger.log.org.apache.maven.cli.transfer.Slf4jMavenTransferListener=warn clean verify \ -Dnative \ -Ddocker \ @@ -215,6 +244,10 @@ jobs: runs-on: ubuntu-latest needs: build steps: + - name: Set BRANCH_OPTIONS + if: github.base_ref == 'camel-master' + run: | + echo '::set-env name=BRANCH_OPTIONS::-Papache-snapshots' - name: Checkout uses: actions/checkout@v2 - name: Set Up Java @@ -230,7 +263,7 @@ jobs: maven-${{ github.sha }} - name: Integration Tests run: | - ./mvnw -V -B \ + ./mvnw -V -B ${BRANCH_OPTIONS} \ -Dorg.slf4j.simpleLogger.log.org.apache.maven.cli.transfer.Slf4jMavenTransferListener=warn clean verify \ -Dnative \ -Ddocker \ @@ -242,6 +275,10 @@ jobs: runs-on: ubuntu-latest needs: build steps: + - name: Set BRANCH_OPTIONS + if: github.base_ref == 'camel-master' + run: | + echo '::set-env name=BRANCH_OPTIONS::-Papache-snapshots' - name: Checkout uses: actions/checkout@v2 - name: Set Up Java @@ -257,7 +294,7 @@ jobs: maven-${{ github.sha }} - name: Integration Tests run: | - ./mvnw -V -B \ + ./mvnw -V -B ${BRANCH_OPTIONS} \ -Dorg.slf4j.simpleLogger.log.org.apache.maven.cli.transfer.Slf4jMavenTransferListener=warn clean verify \ -Dnative \ -Ddocker \ @@ -269,6 +306,10 @@ jobs: runs-on: ubuntu-latest needs: build steps: + - name: Set BRANCH_OPTIONS + if: github.base_ref == 'camel-master' + run: | + echo '::set-env name=BRANCH_OPTIONS::-Papache-snapshots' - name: Checkout uses: actions/checkout@v2 - name: Set Up Java @@ -284,7 +325,7 @@ jobs: maven-${{ github.sha }} - name: Integration Tests run: | - ./mvnw -V -B \ + ./mvnw -V -B ${BRANCH_OPTIONS} \ -Dorg.slf4j.simpleLogger.log.org.apache.maven.cli.transfer.Slf4jMavenTransferListener=warn clean verify \ -Dnative \ -Ddocker \ @@ -295,6 +336,10 @@ jobs: runs-on: ubuntu-latest needs: build steps: + - name: Set BRANCH_OPTIONS + if: github.base_ref == 'camel-master' + run: | + echo '::set-env name=BRANCH_OPTIONS::-Papache-snapshots' - name: Checkout uses: actions/checkout@v2 - name: Set Up Java @@ -310,7 +355,7 @@ jobs: maven-${{ github.sha }} - name: Integration Tests run: | - ./mvnw -V -B \ + ./mvnw -V -B ${BRANCH_OPTIONS} \ -Dorg.slf4j.simpleLogger.log.org.apache.maven.cli.transfer.Slf4jMavenTransferListener=warn clean verify \ -Dnative \ -Ddocker \ @@ -328,6 +373,10 @@ jobs: runs-on: ubuntu-latest needs: build steps: + - name: Set BRANCH_OPTIONS + if: github.base_ref == 'camel-master' + run: | + echo '::set-env name=BRANCH_OPTIONS::-Papache-snapshots' - name: Checkout uses: actions/checkout@v2 - name: Set Up Java @@ -343,7 +392,7 @@ jobs: maven-${{ github.sha }} - name: Integration Tests run: | - ./mvnw -V -B \ + ./mvnw -V -B ${BRANCH_OPTIONS} \ -Dorg.slf4j.simpleLogger.log.org.apache.maven.cli.transfer.Slf4jMavenTransferListener=warn clean verify \ -Dnative \ -Ddocker \ diff --git a/.github/workflows/sync-camel-master-branch.yaml b/.github/workflows/sync-camel-master-branch.yaml new file mode 100644 index 0000000..75ac9d1 --- /dev/null +++ b/.github/workflows/sync-camel-master-branch.yaml @@ -0,0 +1,38 @@ +# +# Licensed to the Apache Software Foundation (ASF) under one or more +# contributor license agreements. See the NOTICE file distributed with +# this work for additional information regarding copyright ownership. +# The ASF licenses this file to You under the Apache License, Version 2.0 +# (the "License"); you may not use this file except in compliance with +# the License. You may obtain a copy of the License at +# +# http://www.apache.org/licenses/LICENSE-2.0 +# +# Unless required by applicable law or agreed to in writing, software +# distributed under the License is distributed on an "AS IS" BASIS, +# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +# See the License for the specific language governing permissions and +# limitations under the License. +# + +name: Sync Camel Master Branch + +on: + schedule: + # Run every Monday at midnight + - cron: '0 0 * * 1' + +jobs: + sync: + runs-on: ubuntu-latest + steps: + # Note: checkout@v2 seems to break the pull-request action hence v1 is used + - name: Checkout + uses: actions/checkout@v1 + - name: GitHub Pull Request Action + uses: repo-sync/pull-request@v2.0.1 + with: + source_branch: master + destination_branch: camel-master + pr_title: Automatic sync branch master to camel-master + github_token: ${{ secrets.GITHUB_TOKEN }}