This commit is contained in:
Enrico Olivelli 2020-07-17 18:13:07 +02:00
parent 6ddfe4e0a0
commit d4882b0ace
1 changed files with 3 additions and 7 deletions

View File

@ -14,27 +14,23 @@
# specific language governing permissions and limitations under the License. # specific language governing permissions and limitations under the License.
# #
name: Java CI name: Java CI
on: on:
pull_request: pull_request:
branches: [ $default-branch ] branches: [ $default-branch ]
env: env:
MAVEN_OPTS: -Dmaven.artifact.threads=256 -Dorg.slf4j.simpleLogger.log.org.apache.maven.cli.transfer.Slf4jMavenTransferListener=warn MAVEN_OPTS: -Dmaven.artifact.threads=256 -Dorg.slf4j.simpleLogger.log.org.apache.maven.cli.transfer.Slf4jMavenTransferListener=warn
jobs: jobs:
build: build:
runs-on: ubuntu-latest runs-on: ubuntu-latest
steps: steps:
- uses: actions/checkout@v2 - uses: actions/checkout@v2
- name: 'Set up JDK 1.8' - name: 'Set up JDK 1.8'
uses: actions/setup-java@v1 uses: actions/setup-java@v1
with: with:
java-version: '1.8' java-version: '1.8'
- name: 'Cache Maven packages' - name: 'Cache Maven packages'
uses: actions/cache@v2 uses: actions/cache@v2
with: with:
path: ~/.m2 path: ~/.m2
key: 'cache' key: 'cache'
restore-keys: 'cache' restore-keys: 'cache'