-
Notifications
You must be signed in to change notification settings - Fork 5
35 lines (35 loc) · 1.28 KB
/
review.yaml
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
name: "Build and Test"
on:
pull_request:
paths-ignore:
- '*.md'
types:
- synchronize
- opened
jobs:
review:
runs-on: ${{ matrix.os }}
strategy:
matrix:
os: [ macos-latest, ubuntu-latest ]
steps:
- uses: actions/checkout@v4
- name: Set up JDK 19
uses: actions/setup-java@v4
with:
distribution: 'zulu'
java-version: '19'
cache: gradle
- name: Setup Chrome
uses: browser-actions/setup-chrome@v1
- name: Gradle cache
uses: gradle/actions/setup-gradle@v3
- name: Tests with Gradle Major
if: ${{ contains(github.event.pull_request.labels.*.name, 'major') }}
run: ./gradlew ktlintCheck assemble build check allTests publishToMavenLocal -PincrementMajor=true
- name: Tests with Gradle Minor
if: ${{ contains(github.event.pull_request.labels.*.name, 'minor') }}
run: ./gradlew ktlintCheck assemble build check allTests publishToMavenLocal -PincrementMinor=true
- name: Tests with Gradle Patch
if: ${{ !contains(github.event.pull_request.labels.*.name, 'major') && !contains(github.event.pull_request.labels.*.name, 'minor') }}
run: ./gradlew ktlintCheck assemble build check allTests publishToMavenLocal