Merge branch 'bugfix/osi' into dev #1291
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
name: Build and Test SVIP | |
on: | |
push: | |
branches: | |
- 'dev' # todo: replace with vars | |
- 'main' # todo: replace with vars | |
paths-ignore: | |
- '**/resources/**' | |
pull_request: | |
types: ['opened', 'edited', 'reopened', 'synchronize', 'ready_for_review'] | |
branches: | |
- 'dev' # todo: replace with vars | |
- 'main' # todo: replace with vars | |
paths-ignore: | |
- '**/resources/**' | |
jobs: | |
# only run on open pull request | |
build-test: | |
if: github.event.pull_request.draft == false | |
runs-on: ubuntu-latest | |
steps: | |
- name: checkout | |
uses: actions/[email protected] | |
- name: Set up JDK 17 | |
uses: actions/setup-java@v3 | |
with: | |
java-version: '17' | |
distribution: 'temurin' | |
- name: Setup Gradle | |
uses: gradle/gradle-build-action@v2 | |
- name: Build and Test SVIP | |
run: ./gradlew clean build | |
- name: Store Report | |
uses: actions/upload-artifact@v3 | |
if: always() | |
with: | |
name: reports | |
path: "**/build/reports/" | |
- name: Report Failure | |
if: failure() | |
run: echo "::error::Some Tests Failed, see the artifacts for details" |