-
Notifications
You must be signed in to change notification settings - Fork 8
44 lines (34 loc) · 1.17 KB
/
pull-request-checks.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
44
# For local testing use this: https://github.com/nektos/act
name: Run Pull Request Checks
on:
push:
branches:
- master
pull_request:
types: [ opened, synchronize, reopened ] # default events - listed to make them explicit
# cancel any existing actions for current branch/PR on new push, unless the action is running on master
concurrency:
group: ${{ github.workflow }}-${{ github.event.pull_request.number || github.ref }}
cancel-in-progress: ${{ github.ref != 'refs/heads/master' }}
jobs:
java-test:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
with:
persist-credentials: false
- uses: ./.github/actions/environment-setup
- name: Gradle ktlint
run: ./gradlew ktlintCheck --no-watch-fs --stacktrace
- uses: actions/upload-artifact@v4
if: failure()
with:
name: report-lint
path: build/reports/ktlint
- name: Gradle test
run: ./gradlew test --no-watch-fs --stacktrace -Dlog.level=debug
- uses: actions/upload-artifact@v4
if: failure()
with:
name: report-unit-test
path: build/reports/tests/unit-test