Skip to content

Commit 848ee91

Browse files
authored
Create main.yml
1 parent 4435d7f commit 848ee91

1 file changed

Lines changed: 44 additions & 0 deletions

File tree

.github/workflows/main.yml

Lines changed: 44 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,44 @@
1+
# This workflow uses actions that are not certified by GitHub.
2+
# They are provided by a third-party and are governed by
3+
# separate terms of service, privacy policy, and support
4+
# documentation.
5+
# This workflow will build a Java project with Gradle and cache/restore any dependencies to improve the workflow execution time
6+
# For more information see: https://help.github.com/actions/language-and-framework-guides/building-and-testing-java-with-gradle
7+
8+
name: Java CI with Gradle
9+
10+
on:
11+
push:
12+
workflow_dispatch:
13+
14+
permissions:
15+
contents: read
16+
17+
jobs:
18+
build:
19+
20+
runs-on: ubuntu-latest
21+
22+
steps:
23+
- name: Checkout
24+
uses: actions/checkout@v4
25+
with:
26+
token: ${{ secrets.CI_TOKEN }}
27+
submodules: true
28+
- name: Set up JDK 17
29+
uses: actions/setup-java@v4
30+
with:
31+
java-version: '17'
32+
distribution: 'temurin'
33+
- name: Build with Gradle
34+
timeout-minutes: 10
35+
uses: gradle/gradle-build-action@v3
36+
with:
37+
arguments: build --no-daemon
38+
- name: Upload test reports
39+
uses: actions/upload-artifact@v4
40+
if: always()
41+
with:
42+
name: test-reports
43+
path: "**/build/reports/*"
44+
retention-days: 5

0 commit comments

Comments
 (0)