Skip to content

External configuration #43

External configuration

External configuration #43

Workflow file for this run

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