-
-
Notifications
You must be signed in to change notification settings - Fork 212
60 lines (49 loc) · 1.45 KB
/
samples-windows.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
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
name: Samples
on:
push:
paths:
- 'samples/**'
pull_request:
paths:
- 'samples/**'
jobs:
build:
runs-on: windows-latest
strategy:
fail-fast: true
matrix:
java_version: [ 11, 17 ]
steps:
- uses: actions/checkout@v4
- name: "Set up JDK ${{ matrix.java_version }}"
uses: actions/setup-java@v4
with:
distribution: 'adopt'
java-version: ${{ matrix.java_version }}
- name: Setup Gradle
uses: gradle/actions/setup-gradle@v4
- name: Cache maven dependencies
uses: actions/cache@v4
with:
path: ~/.m2/repository
key: samples-${{ runner.os }}-maven-${{ hashFiles('**/pom.xml') }}
restore-keys: |
samples-${{ runner.os }}-maven-
- name: build js sample
run: ./gradlew build
working-directory: samples\js\kotlin-test
- name: build Junit5 sample
run: ./gradlew build
working-directory: samples\jvm\junit5
- name: build maven sample
run: ./mvnw -B clean verify
working-directory: samples\jvm\maven
- name: build kotest sample
run: ./gradlew build
working-directory: samples\jvm\kotest
- name: build TestNG sample
run: ./gradlew build
working-directory: samples\jvm\testng
- name: build MPP sample
run: ./gradlew build
working-directory: samples\multiplatform\kotlin-test