Marinara/.gitea/workflows/gradle-test.yaml
Workflow config file is invalid. Please check your config file: yaml: unmarshal errors: line 8: cannot unmarshal !!seq into model.Job
tueem de83137886
Some checks failed
github-mirror / push-github (push) Successful in 4s
Build / Gradle Build (push) Failing after 7m19s
add first version of CI with build, test and publish
2024-11-14 11:53:08 +01:00

38 lines
865 B
YAML

name: Test
on:
push:
jobs:
Gradle Test:
- name: Checkout code
uses: actions/checkout@v4
- name: Set up JDK
uses: actions/setup-java@v4
with:
java-version: '23'
check-latest: true
distribution: 'zulu'
- name: Cache Gradle dependencies
uses: actions/cache@v4
with:
path: |
~/.gradle/caches
key: ${{ runner.os }}-gradle-${{ hashFiles('**/*.gradle*', '**/gradle-wrapper.properties') }}
restore-keys: |
${{ runner.os }}-gradle-
- name: Test
env:
DISCORD_TEST_TOKEN: {{ secrets.DISCORD_TOKEN }}
run: chmod +x gradlew; ./gradlew test
- name: Publish Test Results
if: always()
uses: dorny/test-reporter@v1
with:
name: Test Results
path: build/test-results/test/*.xml
reporter: junit