-
-
Notifications
You must be signed in to change notification settings - Fork 146
39 lines (38 loc) · 1.01 KB
/
ci-kotlin.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
36
37
38
39
name: "CI Kotlin Provider"
on:
push:
branches:
- main
paths:
- openfeature/providers/kotlin-provider/**
pull_request:
types: [ opened, synchronize, reopened ]
paths:
- openfeature/providers/kotlin-provider/**
jobs:
Build:
runs-on: ubuntu-latest
steps:
- name: Cache Gradle and wrapper
uses: actions/cache@v4
with:
path: |
~/.gradle/caches
~/.gradle/wrapper
key: ${{ runner.os }}-gradle-${{ hashFiles('**/*.gradle*') }}
restore-keys: |
${{ runner.os }}-gradle-
- name: Checkout repository
uses: actions/checkout@v4
with:
fetch-depth: 1
- name: Set up JDK 17
uses: actions/setup-java@v4
with:
java-version: 17
distribution: 'zulu'
- name: Setup Gradle
uses: gradle/gradle-build-action@v3
- name: Build with Gradle
working-directory: ./openfeature/providers/kotlin-provider
run: ./gradlew test