Update readme #50
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 | |
on: | |
push: | |
branches: | |
- master | |
pull_request: | |
branches: | |
- master | |
jobs: | |
build: | |
name: Build | |
runs-on: ubuntu-latest | |
steps: | |
- name: Checkout | |
uses: actions/checkout@v3 | |
- name: Set up Java | |
uses: actions/setup-java@v3 | |
with: | |
distribution: 'zulu' | |
java-version: 17 | |
- name: Run build | |
run: ./gradlew clean build -x test | |
test: | |
name: Unit tests | |
runs-on: ubuntu-latest | |
needs: [ build ] | |
steps: | |
- name: Checkout | |
uses: actions/checkout@v3 | |
- name: Set up Java | |
uses: actions/setup-java@v3 | |
with: | |
distribution: 'zulu' | |
java-version: 17 | |
- name: Run build | |
run: ./gradlew test --build-cache --no-daemon | |
- name: Upload test report in case of failures | |
if: ${{ failure() }} | |
uses: actions/upload-artifact@v3 | |
with: | |
name: unit-test-report | |
path: build/reports/tests/unit-test/ | |
retention-days: 3 |