generated from siyul-park/kotlin-multi-module-boilerplate
-
Notifications
You must be signed in to change notification settings - Fork 0
42 lines (39 loc) · 1.11 KB
/
check.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
name: check
on:
- push
jobs:
gradle-check:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v3
- uses: actions/setup-java@v3
with:
distribution: 'adopt'
java-version: 11
- uses: actions/cache@v3
with:
path: |
~/.gradle/caches
~/.gradle/wrapper
key: ${{ runner.os }}-gradle-${{ hashFiles('**/*.gradle*', '**/gradle-wrapper.properties') }}
restore-keys: |
${{ runner.os }}-gradle-
- run: chmod +x gradlew
- run: ./gradlew check codeCoverageReport
- uses: codecov/codecov-action@v3
with:
token: ${{ secrets.CODECOV_TOKEN }}
file: ./build/reports/jacoco/codeCoverageReport/codeCoverageReport.xml
k6-tests-check:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v3
- uses: actions/setup-node@v3
with:
node-version: '16'
- run: npm ci
working-directory: ./k6-tests
- run: npm run build
working-directory: ./k6-tests
- run: npm run lint
working-directory: ./k6-tests