-
Notifications
You must be signed in to change notification settings - Fork 1
36 lines (36 loc) · 1.04 KB
/
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
name: Run Gradle on Push
on: [push]
jobs:
gradle:
strategy:
matrix:
os: [ubuntu-latest]
runs-on: ${{ matrix.os }}
# runs-on: windows-latest
steps:
- uses: actions/checkout@v3
- uses: actions/setup-java@v3
with:
distribution: adopt
java-version: 11
- name: Setup Gradle
uses: gradle/gradle-build-action@v2
- name: Setup and execute Gradle 'test' task
uses: gradle/gradle-build-action@v2
with:
arguments: clean build test --scan
env:
GPG_SIGNING_KEY: ${{ secrets.GPG_SIGNING_KEY }}
GPG_SIGNING_PASSPHRASE: ${{ secrets.GPG_SIGNING_PASSPHRASE }}
- name: Upload build reports
uses: actions/upload-artifact@v3
if: always() # always run even if the previous step fails
with:
name: build-reports
path: build/reports/
- name: Upload Test XML Files
uses: actions/upload-artifact@v3
if: always() # always run even if the previous step fails
with:
name: test-xmls
path: /tmp/*.xml