-
-
Notifications
You must be signed in to change notification settings - Fork 0
34 lines (26 loc) · 989 Bytes
/
dev-unit-test.yml
File metadata and controls
34 lines (26 loc) · 989 Bytes
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
name: Dev - Unit Test
on:
workflow_dispatch:
jobs:
job1:
name: Run Unit Test
runs-on: ubuntu-latest
steps:
- name: Checkout
uses: actions/checkout@v6
- name: Set environment variable
run: echo "DEV_TEST=true" >> $GITHUB_ENV
# Configure Gradle for optimal use in GitHub Actions, including caching of downloaded dependencies.
# See: https://github.com/gradle/actions/blob/main/setup-gradle/README.md
- name: Setup Gradle
uses: gradle/actions/setup-gradle@39e147cb9de83bb9910b8ef8bd7fff0ee20fcd6f # v6.0.1
- name: Compile with Gradle
run: gradle compileJava -i
- name: Unit Test
run: gradle test -i
- name: Upload test reports
uses: actions/upload-artifact@v6
with:
# Using github.run_number here to reduce confusion when downloading & comparing from several builds
name: ${{ github.run_number }}-test-reports
path: build/reports/tests/