Skip to content

Commit 6b00533

Browse files
committed
chore: create ci
1 parent c452864 commit 6b00533

File tree

1 file changed

+44
-0
lines changed

1 file changed

+44
-0
lines changed

.github/workflows/ci.yml

Lines changed: 44 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,44 @@
1+
2+
name: CI
3+
4+
on:
5+
push:
6+
branches: [ "main" ]
7+
pull_request:
8+
branches: [ "main" ]
9+
10+
workflow_dispatch:
11+
12+
jobs:
13+
build:
14+
runs-on: ubuntu-latest
15+
16+
steps:
17+
- name: Checkout the code
18+
uses: actions/checkout@v4
19+
20+
- name: Set up JDK 17
21+
uses: actions/setup-java@v4
22+
with:
23+
java-version: '17'
24+
distribution: 'adopt'
25+
26+
- name: Make gradlew executable
27+
run: chmod +x gradlew
28+
29+
- name: gradle wrapper
30+
run: gradle wrapper
31+
32+
- name: Build with Gradle
33+
run: ./gradlew build
34+
35+
- name: Run tests
36+
run: ./gradlew test
37+
38+
# TODO ADD COMPOSE TESTS STEP
39+
40+
- name: Upload test report
41+
uses: actions/upload-artifact@v4
42+
with:
43+
name: unit_test_report
44+
path: app/build/reports/tests/testDebugUnitTest/

0 commit comments

Comments
 (0)