Skip to content

Commit

Permalink
Fix fabric8io#1450: CI builds with Maven Wrapper to ensure that Maven…
Browse files Browse the repository at this point in the history
… Wrapper files and configuration are correct

+ Add Linux and Windows Github workflows for maven wrapper builds
  • Loading branch information
rohanKanojia committed Apr 2, 2021
1 parent b141bce commit b9742a2
Show file tree
Hide file tree
Showing 3 changed files with 49 additions and 1 deletion.
24 changes: 24 additions & 0 deletions .github/workflows/linux-mavenwrapper-build.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,24 @@
name: Linux Maven Wrapper Build

on:
push:
branches:
- master
pull_request:

jobs:
build:
name: Linux Java ${{ matrix.java }} Maven Wrapper
runs-on: ubuntu-latest
strategy:
matrix:
java: [11]
steps:
- name: Checkout
uses: actions/checkout@v2
- name: Setup Java
uses: actions/setup-java@v1
with:
java-version: ${{ matrix.java }}
- name: Build Project
run: ./mvnw -B -C -V -ntp clean install
2 changes: 1 addition & 1 deletion .github/workflows/windows-build.yml
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
name: Windows Build
name: Windows Maven Build

on:
push:
Expand Down
24 changes: 24 additions & 0 deletions .github/workflows/windows-mavenwrapper-build.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,24 @@
name: Windows Maven Wrapper Build

on:
push:
branches:
- master
pull_request:

jobs:
build:
name: Windows Java ${{ matrix.java }} Maven Wrapper
runs-on: windows-latest
strategy:
matrix:
java: [11]
steps:
- name: Checkout
uses: actions/checkout@v2
- name: Setup Java
uses: actions/setup-java@v1
with:
java-version: ${{ matrix.java }}
- name: Build Project
run: ./mvnw.cmd clean install

0 comments on commit b9742a2

Please sign in to comment.