Skip to content

Commit 9735004

Browse files
authored
Add CI workflow
1 parent 96eebea commit 9735004

1 file changed

Lines changed: 40 additions & 0 deletions

File tree

.github/workflows/ci.yml

Lines changed: 40 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,40 @@
1+
name: CI
2+
3+
on:
4+
push:
5+
branches: [ "main" ]
6+
pull_request:
7+
branches: [ "main" ]
8+
9+
permissions:
10+
contents: read
11+
12+
jobs:
13+
test:
14+
runs-on: ubuntu-latest
15+
16+
steps:
17+
- name: Checkout
18+
uses: actions/checkout@v4
19+
20+
- name: Set up JDK 21
21+
uses: actions/setup-java@v4
22+
with:
23+
distribution: temurin
24+
java-version: "21"
25+
cache: gradle
26+
27+
- name: Make gradlew executable
28+
run: chmod +x gradlew
29+
30+
- name: Run tests
31+
run: ./gradlew test
32+
33+
- name: Upload test reports (always)
34+
if: always()
35+
uses: actions/upload-artifact@v4
36+
with:
37+
name: test-reports
38+
path: |
39+
**/build/reports/tests/test
40+
**/build/test-results/test

0 commit comments

Comments
 (0)