Update README.md #30
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: Run tests | |
on: | |
push: | |
branches: [ main ] | |
pull_request: | |
paths-ignore: | |
- README.md | |
- .github/** | |
jobs: | |
build-and-test: | |
strategy: | |
matrix: | |
os: [macos, ubuntu, windows] | |
runs-on: ${{ matrix.os }}-latest | |
steps: | |
- uses: actions/checkout@v2 | |
- name: set up JDK 11 | |
uses: actions/setup-java@v2 | |
with: | |
java-version: '11' | |
distribution: 'temurin' | |
cache: gradle | |
- name: Grant execute permission for gradlew | |
run: chmod +x gradlew | |
- name: Build | |
run: ./gradlew :noko:desktopJar | |
- name: Test | |
run: ./gradlew :noko:desktopTest | |
- name: Upload HTML reports | |
uses: actions/[email protected] | |
if: always() | |
with: | |
name: desktopTest-${{ matrix.os }}-reports.zip | |
path: ./noko/build/reports/tests/desktopTest | |
- name: Upload Unit Test Results | |
if: always() | |
uses: actions/upload-artifact@v2 | |
with: | |
name: Unit Test Results On ${{ matrix.os }}) | |
path: ./noko/build/test-results/**/*.xml | |
publish-test-results: | |
name: Publish Unit Tests Results | |
needs: build-and-test | |
runs-on: ubuntu-latest | |
if: always() | |
steps: | |
- name: Download Artifacts | |
uses: actions/download-artifact@v2 | |
with: | |
path: artifacts | |
- name: Publish Unit Test Results | |
uses: EnricoMi/publish-unit-test-result-action@v1 | |
with: | |
files: artifacts/**/*.xml |