Skip to content

Commit

Permalink
Merge pull request #87 from RedHatInsights/ci/simple-pr-check
Browse files Browse the repository at this point in the history
ci: reworked pull-request workflow
  • Loading branch information
jponge authored May 9, 2023
2 parents 0cc54cd + 6ea56ad commit c403fba
Show file tree
Hide file tree
Showing 2 changed files with 23 additions and 2 deletions.
21 changes: 21 additions & 0 deletions .github/workflows/pr-check.yaml
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
4 changes: 2 additions & 2 deletions .github/workflows/release.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -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:
Expand All @@ -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:
Expand Down

0 comments on commit c403fba

Please sign in to comment.