-
-
Notifications
You must be signed in to change notification settings - Fork 67
41 lines (33 loc) · 983 Bytes
/
main.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
name: CI
on:
push:
branches: [ master ]
pull_request:
branches: [ master ]
workflow_dispatch:
# This allows a subsequently queued workflow run to interrupt previous runs
concurrency:
group: '${{ github.workflow }} @ ${{ github.event.pull_request.head.label || github.head_ref || github.ref }}'
cancel-in-progress: true
jobs:
build:
runs-on: ubuntu-latest
timeout-minutes: 60
steps:
- uses: actions/checkout@v3
- name: set up JDK
uses: actions/setup-java@v3
with:
java-version: 17
distribution: temurin
- name: Setup Gradle
uses: gradle/gradle-build-action@v2
- name: Run all tests
run: ./gradlew check -x :kvision-tools:kvision-gradle-plugin:check
- name: Test Report
uses: dorny/test-reporter@v1
if: success() || failure()
with:
name: Karma JUnit Tests
path: build/reports/junit/*.xml
reporter: java-junit