Update main.yml #9
Workflow file for this run
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: Java | |
on: | |
push: | |
workflow_dispatch: | |
jobs: | |
build: | |
runs-on: ubuntu-latest | |
steps: | |
- name: Checkout | |
uses: actions/checkout@v1 | |
- name: Set up JDK 20 | |
uses: actions/setup-java@v2 | |
with: | |
java-version: '20' | |
distribution: 'adopt' | |
- name: Grant Permissions to gradlew | |
run: chmod +x gradlew | |
- name: Build | |
run: ./gradlew build -x test | |
- name: Test | |
run: ./gradlew test --continue | |
- name: Publish Test Results | |
uses: EnricoMi/publish-unit-test-result-action@v2 | |
if: always() | |
with: | |
files: | | |
build/test-results/**/*.xml | |
- name: Upload test report | |
uses: actions/upload-artifact@v2 | |
with: | |
name: test-case reports | |
path: build/test-results |