Skip to content

Commit 1a9f2c5

Browse files
committed
feat: PR check
1 parent c3a457e commit 1a9f2c5

File tree

1 file changed

+45
-0
lines changed

1 file changed

+45
-0
lines changed

.github/workflows/pr-check.yml

Lines changed: 45 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,45 @@
1+
name: PR Check
2+
3+
on:
4+
pull_request:
5+
branches: [ master ]
6+
paths-ignore:
7+
- 'fastlane/**'
8+
- '.github/**'
9+
- 'icons/**'
10+
- 'images/**'
11+
- 'scripts/**'
12+
- 'whatsnew/**'
13+
- '**.md'
14+
- '**.MD'
15+
16+
# If two events are triggered within a short time in the same PR, cancel the run of the oldest event
17+
concurrency:
18+
group: ${{ github.workflow }}-${{ github.event.pull_request.number }}
19+
cancel-in-progress: true
20+
21+
jobs:
22+
validate-pr:
23+
name: 'Tests and Build Production Debug Build'
24+
runs-on: ubuntu-latest
25+
steps:
26+
- uses: actions/checkout@v4
27+
28+
- name: Set up JDK 21
29+
uses: actions/setup-java@v4
30+
with:
31+
java-version: '21'
32+
distribution: 'jetbrains'
33+
34+
- name: Grant execute permission for gradlew
35+
run: chmod +x ./gradlew
36+
37+
- name: 🏗 Build APK
38+
run: bash ./gradlew assembleDebug
39+
40+
- name: 🚀 Upload APK to Artifacts 📱
41+
uses: actions/upload-artifact@v4
42+
with:
43+
name: app
44+
path: app/build/outputs/apk/debug/*.apk
45+
retention-days: 3

0 commit comments

Comments
 (0)