-
Notifications
You must be signed in to change notification settings - Fork 18
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #87 from RedHatInsights/ci/simple-pr-check
ci: reworked pull-request workflow
- Loading branch information
Showing
2 changed files
with
23 additions
and
2 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,21 @@ | ||
name: Pull request check | ||
on: | ||
pull_request: | ||
|
||
jobs: | ||
build: | ||
name: Pull request check | ||
runs-on: ubuntu-latest | ||
steps: | ||
- uses: actions/checkout@v2 | ||
name: Checkout from Git | ||
with: | ||
fetch-depth: 0 | ||
- uses: actions/setup-java@v2 | ||
name: Setup Java | ||
with: | ||
distribution: temurin | ||
java-version: 11 | ||
cache: maven | ||
- name: Run tests | ||
run: ./mvnw --no-transfer-progress verify |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -29,7 +29,7 @@ jobs: | |
distribution: 'temurin' | ||
cache: maven | ||
- name: Set release version | ||
run: ./mvnw --batch-mode versions:set -DnewVersion=${{ github.event.inputs.version }} | ||
run: ./mvnw --batch-mode --no-transfer-progress versions:set -DnewVersion=${{ github.event.inputs.version }} | ||
- name: Commit & Push changes | ||
uses: actions-js/[email protected] | ||
with: | ||
|
@@ -45,7 +45,7 @@ jobs: | |
JRELEASER_PREVIOUS_TAG_NAME: ${{ github.event.inputs.previousVersion }} | ||
JRELEASER_GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} | ||
- name: Set the next release version | ||
run: ./mvnw --batch-mode versions:set -DnewVersion=${{ github.event.inputs.nextVersion }}-SNAPSHOT | ||
run: ./mvnw --batch-mode --no-transfer-progress versions:set -DnewVersion=${{ github.event.inputs.nextVersion }}-SNAPSHOT | ||
- name: Commit & Push changes | ||
uses: actions-js/[email protected] | ||
with: | ||
|