forked from Reithger/Finite-State-Machine-Model
-
Notifications
You must be signed in to change notification settings - Fork 0
48 lines (45 loc) · 986 Bytes
/
test.yml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
name: CI
on:
push:
branches:
- main
paths-ignore:
- "README.md"
tags:
- 'v[0-9]+.[0-9]+.[0-9]+'
pull_request:
branches:
- main
permissions:
actions: read
contents: write
issues: read
checks: write
pull-requests: write
jobs:
test:
name: Test
runs-on: ubuntu-latest
steps:
- name: Checkout repository
uses: actions/checkout@v4
- name: Setup JDK 8
uses: actions/setup-java@v4
with:
distribution: temurin
java-version: 8
- name: Validate Gradle wrapper
uses: gradle/wrapper-validation-action@v2
- name: Setup Gradle
uses: gradle/gradle-build-action@v3.0.0
with:
gradle-version: wrapper
dependency-graph: generate-and-submit
- name: Run tests
run: |
./gradlew test
- name: Publish Test Results
if: ${{ always() }}
uses: mikepenz/action-junit-report@v4
with:
report_paths: "**/TEST-*.xml"