Skip to content

Commit

Permalink
Test on Linux, Mac, and Windows
Browse files Browse the repository at this point in the history
  • Loading branch information
dmlloyd committed Mar 8, 2021
1 parent 4e852cd commit ec315d5
Showing 1 changed file with 71 additions and 3 deletions.
74 changes: 71 additions & 3 deletions .github/workflows/build.yml
Original file line number Diff line number Diff line change
Expand Up @@ -17,9 +17,77 @@ on:
- 'README*'

jobs:
build:
build-linux:
runs-on: ubuntu-latest
name: build with JDK 11
name: build with JDK 11 (Linux)

steps:
- uses: actions/checkout@v2
name: checkout

- uses: AdoptOpenJDK/install-jdk@v1
name: set up JDK 11
with:
version: 11

- uses: AdoptOpenJDK/install-jdk@v1
name: set up JDK 10
with:
version: 10
targets: 'JAVA_HOME_10'

- uses: AdoptOpenJDK/install-jdk@v1
name: set up JDK 9
with:
version: 9
targets: 'JAVA_HOME_9'

- uses: AdoptOpenJDK/install-jdk@v1
name: set up JDK 8
with:
version: 8
targets: 'JAVA_HOME_8'

- name: build with maven
run: mvn -B formatter:validate verify --file pom.xml -Djava8.home=$JAVA_HOME_8 -Djava9.home=$JAVA_HOME_9 -Djava10.home=$JAVA_HOME_10

build-windows:
runs-on: windows-latest
name: build with JDK 11 (Windows)

steps:
- uses: actions/checkout@v2
name: checkout

- uses: AdoptOpenJDK/install-jdk@v1
name: set up JDK 11
with:
version: 11

- uses: AdoptOpenJDK/install-jdk@v1
name: set up JDK 10
with:
version: 10
targets: 'JAVA_HOME_10'

- uses: AdoptOpenJDK/install-jdk@v1
name: set up JDK 9
with:
version: 9
targets: 'JAVA_HOME_9'

- uses: AdoptOpenJDK/install-jdk@v1
name: set up JDK 8
with:
version: 8
targets: 'JAVA_HOME_8'

- name: build with maven
run: mvn -B formatter:validate verify --file pom.xml -Djava8.home=%JAVA_HOME_8% -Djava9.home=%JAVA_HOME_9% -Djava10.home=%JAVA_HOME_10%

build-macos:
runs-on: macos-latest
name: build with JDK 11 (Mac OS)

steps:
- uses: actions/checkout@v2
Expand Down Expand Up @@ -52,7 +120,7 @@ jobs:
run: mvn -B formatter:validate verify --file pom.xml -Djava8.home=$JAVA_HOME_8 -Djava9.home=$JAVA_HOME_9 -Djava10.home=$JAVA_HOME_10

quality:
needs: [build]
needs: [build-linux,build-macos,build-windows]
if: github.event_name == 'push' && github.repository == 'smallrye/smallrye-common'
runs-on: ubuntu-latest
name: quality
Expand Down

0 comments on commit ec315d5

Please sign in to comment.