Skip to content

Workflow file for this run

name: Run Unit Tests
on:
push:
branches: [ "main" ]
pull_request:
branches: [ "main" ]
permissions:
contents: read
checks: write
pull-requests: write
jobs:
build:
name: Unit Tests
runs-on: ubuntu-latest
steps:
- name: Checkout code
uses: actions/checkout@v2
with:
path: ChatMod
- name: Clone japi repository
uses: actions/checkout@v2
with:
repository: comroid-git/japi
path: japi
token: ${{ secrets.GITHUB_TOKEN }}
- name: Set up Java
uses: actions/setup-java@v2
with:
distribution: 'adopt'
java-version: '17'
- name: Run Unit Tests
run: cd ChatMod && ./gradlew test
- name: Publish Test Results
uses: EnricoMi/publish-unit-test-result-action@v2
if: always()
with:
files: |
**/build/test-results/**/*.xml
**/build/test-results/**/*.trx
**/build/test-results/**/*.json