Skip to content

Commit 2eac01f

Browse files
committed
Add CI
1 parent 8a93e39 commit 2eac01f

File tree

1 file changed

+57
-0
lines changed

1 file changed

+57
-0
lines changed

.github/workflows/ci.yml

+57
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,57 @@
1+
name: CI
2+
3+
on:
4+
workflow_dispatch:
5+
pull_request:
6+
branches:
7+
- dev
8+
- main
9+
paths-ignore:
10+
- 'README.md'
11+
- 'doc/**'
12+
- 'fastlane/**'
13+
- 'assets/**'
14+
- '.github/**/*.md'
15+
- '.github/FUNDING.yml'
16+
- '.github/ISSUE_TEMPLATE/**'
17+
push:
18+
branches:
19+
- dev
20+
- main
21+
paths-ignore:
22+
- 'README.md'
23+
- 'doc/**'
24+
- 'fastlane/**'
25+
- 'assets/**'
26+
- '.github/**/*.md'
27+
- '.github/FUNDING.yml'
28+
- '.github/ISSUE_TEMPLATE/**'
29+
30+
jobs:
31+
build:
32+
runs-on: ubuntu-latest
33+
34+
permissions: write-all
35+
36+
steps:
37+
- name: Checkout branch "${{ github.ref_name }}"
38+
run: |
39+
git clone --no-checkout https://github.com/MaintainTeam/WhatsDeleted.git .
40+
git config core.symlinks false
41+
git checkout --progress --force ${{ github.ref_name }}
42+
43+
- name: Set up JDK 17
44+
uses: actions/setup-java@v4
45+
with:
46+
java-version: 17
47+
distribution: "temurin"
48+
cache: 'gradle'
49+
50+
- name: Build debug APK and run jvm tests
51+
run: ./gradlew assembleDebug lintDebug testDebugUnitTest --stacktrace -DskipFormatKtlint
52+
53+
- name: Upload APK
54+
uses: actions/upload-artifact@v4
55+
with:
56+
name: app
57+
path: app/build/outputs/apk/debug/*.apk

0 commit comments

Comments
 (0)