-
Notifications
You must be signed in to change notification settings - Fork 1
43 lines (35 loc) · 985 Bytes
/
pr_check.yml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
name: PR Check
on:
pull_request:
branches: [ main ]
env:
VERSION: ${{ vars.VERSION }}
DESKTOP_VERSION: ${{ vars.DESKTOP_VERSION }}
VERSION_CODE: ${{ vars.VERSION_CODE }}
IS_DEBUG: ${{ vars.IS_DEBUG }}
SENTRY_ORG: ${{ vars.SENTRY_ORG }}
SENTRY_PROJECT: ${{ vars.SENTRY_PROJECT }}
SENTRY_ENVIRONMENT: ${{ vars.SENTRY_ENVIRONMENT }}
concurrency:
group: pr-check-${{ github.ref }}
cancel-in-progress: true
jobs:
run-checks:
runs-on: macos-latest
environment: development
steps:
- name: Checkout Branch
uses: actions/checkout@v4
- name: Set up JDK 17
uses: actions/setup-java@v4
with:
distribution: 'zulu'
java-version: '17'
- name: Run Spotless
run: ./gradlew spotlessCheck
- name: Run Lint
run: ./gradlew lint
- name: Run DB Checks
run: |
./gradlew generateCommonMainNinjaDatabaseSchema;
./gradlew verifySqlDelightMigration;