Skip to content

Commit

Permalink
Create multi-os-jdk8-with-current-maven-ci.yml
Browse files Browse the repository at this point in the history
  • Loading branch information
slachiewicz committed Jul 31, 2021
1 parent 98f6819 commit b022ab0
Showing 1 changed file with 77 additions and 0 deletions.
77 changes: 77 additions & 0 deletions .github/workflows/multi-os-jdk8-with-current-maven-ci.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,77 @@
# 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: JDK 8 on Linux, Windows and macOS
on:
push:
branches:
- master
- '*'
pull_request:
branches:
- '*'

jobs:
linux:
name: Linux
runs-on: ubuntu-latest
container: "maven:3.6.3-jdk-8-slim"
steps:
- uses: actions/checkout@v2
- uses: actions/cache@v1
with:
path: ~/.m2/repository
key: ${{ runner.os }}-maven-ubuntu-latest-${{ hashFiles('**/pom.xml') }}
restore-keys: |
${{ runner.os }}-maven-ubuntu-latest-
- name: 'Build'
run: mvn -B -V --no-transfer-progress -Prun-its clean verify --fail-at-end
windows:
name: 'Windows'
runs-on: windows-latest
steps:
- uses: actions/checkout@v2
- uses: actions/cache@v1
with:
path: ~/.m2/repository
key: ${{ runner.os }}-maven-windows-latest-${{ hashFiles('**/pom.xml') }}
restore-keys: |
${{ runner.os }}-maven-windows-latest-
- name: 'Set up JDK 8'
uses: actions/setup-java@v1
with:
java-version: 8
- name: 'Build'
shell: bash
run: mvn -B -V --no-transfer-progress -Prun-its clean verify --fail-at-end
mac:
name: 'Mac OS'
runs-on: macos-latest
steps:
- uses: actions/checkout@v2
- uses: actions/cache@v1
with:
path: ~/.m2/repository
key: ${{ runner.os }}-maven-macos-latest-${{ hashFiles('**/pom.xml') }}
restore-keys: |
${{ runner.os }}-maven-macos-latest-
- name: 'Set up JDK 8'
uses: actions/setup-java@v1
with:
java-version: 8
- name: 'Build'
run: mvn -B -V --no-transfer-progress -Prun-its clean verify --fail-at-end

0 comments on commit b022ab0

Please sign in to comment.