-
Notifications
You must be signed in to change notification settings - Fork 1
42 lines (38 loc) · 1.07 KB
/
ci.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
40
41
42
name: CI
on:
push:
branches:
- 'main'
pull_request:
branches:
- '*'
jobs:
Tests:
runs-on: ubuntu-latest
steps:
- name: Cache Gradle and wrapper
uses: actions/cache@v2
with:
path: |
~/.gradle/caches
~/.gradle/wrapper
key: ${{ runner.os }}-gradle-${{ hashFiles('**/*.gradle*') }}
restore-keys: |
${{ runner.os }}-gradle-
- uses: actions/checkout@v1
- name: Set up JDK 12
uses: actions/setup-java@v1
with:
java-version: 12
- name: Grant Permission for Gradlew to Execute
run: chmod +x gradlew
- name: Run build debug
run: ./gradlew assembleDebug
- name: Run Tests
run: ./gradlew :Provider:testDebugUnitTest --tests dev.openfeature.contrib.providers.ConfidenceFeatureProviderTests --no-daemon --stacktrace
- name: Run build release
run: ./gradlew assembleRelease
- name: Run Lint
run: ./gradlew lintDebug
- name: Run Ktlint
run: ./gradlew ktlintCheck