-
Notifications
You must be signed in to change notification settings - Fork 8
48 lines (44 loc) · 1.06 KB
/
verification.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: Build & test
on:
push:
branches:
- main
paths-ignore:
- '**.md'
pull_request:
workflow_dispatch:
jobs:
unitTest:
name: Run Unit Tests
runs-on: macos-latest
steps:
- uses: actions/checkout@v4
- name: Set up JDK 17
uses: actions/setup-java@v4
with:
distribution: 'zulu'
java-version: 17
- name: Make gradlew executable
run: chmod +x ./gradlew
- name: Run unit tests
run: ./gradlew test
- name: Upload test report
uses: actions/upload-artifact@v3
with:
name: test report
path: build/reports/tests/test/index.html
retention-days: 1
assemble:
name: Assemble Project
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- name: Set up JDK 17
uses: actions/setup-java@v4
with:
distribution: 'zulu'
java-version: 17
- name: Make gradlew executable
run: chmod +x ./gradlew
- name: Run unit tests
run: ./gradlew assemble