-
Notifications
You must be signed in to change notification settings - Fork 0
42 lines (33 loc) · 1020 Bytes
/
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
name: Check PR
on:
pull_request:
types: [ opened, synchronize, reopened, ready_for_review ]
concurrency:
group: ${{ github.workflow }}-${{ github.event.pull_request.number || github.ref }}
cancel-in-progress: true
jobs:
check:
runs-on: ubuntu-latest
if: github.event.pull_request.draft == false
steps:
- name: Checkout code
uses: actions/checkout@v4
- name: Set up Java
uses: actions/setup-java@v4
with:
distribution: 'corretto'
java-version: '17'
- name: Set up Gradle
uses: gradle/actions/setup-gradle@v4
- name: Run ktlint
uses: musichin/ktlint-check@v3
with:
ktlint-version: 1.3.1
- name: Run Tests
run: ./gradlew :compose-remember-setting:desktopTest
- name: Store reports
uses: actions/upload-artifact@v4
if: always()
with:
name: test-results
path: compose-remember-setting/build/test-results/desktopTest/*.xml