lburgazzoli commented on a change in pull request #634: Run native tests with GitHub Actions URL: https://github.com/apache/camel-quarkus/pull/634#discussion_r369530737
########## File path: .github/workflows/pr-build.yaml ########## @@ -0,0 +1,381 @@ +# +# 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: Build PR + +on: + pull_request: + branches: + - master + +env: + LANG: en_US + +jobs: + build: + runs-on: ubuntu-latest + steps: + - name: Checkout + uses: actions/checkout@v2 + - name: Set Up Java + uses: actions/setup-java@v1 + with: + java-version: 1.8 + - name: Build Project + run: | + ./mvnw -V -B \ + -Dorg.slf4j.simpleLogger.log.org.apache.maven.cli.transfer.Slf4jMavenTransferListener=warn \ + clean install + - name: Save Cache + uses: actions/cache@v1 + with: + path: ~/.m2/repository + key: maven-${{ github.sha }} Review comment: GitHub actions provide a few ways to "solve" the problem of sharing project outcomes: - caching - deploy artefacts None of them is optimal but the caching one is the easier to implement as today and as further step, we could cache only what the project produces instead of the whole local maven repo as the cache has also some limitations in term of space. ---------------------------------------------------------------- This is an automated message from the Apache Git Service. To respond to the message, please log on to GitHub and use the URL above to go to the specific comment. For queries about this service, please contact Infrastructure at: us...@infra.apache.org With regards, Apache Git Services