-
Notifications
You must be signed in to change notification settings - Fork 0
46 lines (37 loc) · 1.19 KB
/
workflow.yml
File metadata and controls
46 lines (37 loc) · 1.19 KB
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
name: Test and Publish
on:
pull_request:
branches: [ "master" ]
push:
branches: [ "master" ]
jobs:
build:
runs-on: ubuntu-22.04
steps:
- name: Checkout Repository
uses: actions/checkout@v4
- name: Validate Gradle Wrapper
uses: gradle/actions/wrapper-validation@v3
- name: Set up JDK 21
uses: actions/setup-java@v4
with:
java-version: 21
distribution: 'temurin'
cache: gradle
- name: Setup Gradle
uses: gradle/actions/setup-gradle@417ae3ccd767c252f5661f1ace9f835f9654f2b5
- name: Change Gradle Permissions
run: chmod +x ./gradlew
- name: Run Tests
if: github.event_name != 'push' && github.ref == 'refs/heads/master'
id: test
run: ./gradlew test --info --stacktrace -PStaticStudiosUsername=github -PStaticStudiosPassword=${{ secrets.REPOSITORY_SECRET }} | tee gradle-test.log
- name: Upload test logs and reports
if: always()
uses: actions/upload-artifact@v4
with:
name: gradle-test-artifacts
path: |
gradle-test.log
build/reports/tests/test/
build/test-results/test/