forked from owncloud/android
-
Notifications
You must be signed in to change notification settings - Fork 0
50 lines (47 loc) · 1.25 KB
/
tests.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
name: unit tests
on:
workflow_dispatch:
# Inputs the workflow accepts.
inputs:
name:
# Friendly description to be shown in the UI instead of 'name'
description: 'Test launcher'
# Default value if no value is explicitly provided
default: 'World'
# Input has to be provided for the workflow to run
required: true
# The data type of the input
type: string
push:
branches: [ "feature/gh_actions" ]
jobs:
app:
runs-on: ubuntu-latest
steps:
- name: Gradle cache
uses: gradle/gradle-build-action@v2
- name: checkout
uses: actions/checkout@v4
- name: tests
run: |
./gradlew owncloudApp:testOriginalDebugUnitTest
domain:
runs-on: ubuntu-latest
steps:
- name: Gradle cache
uses: gradle/gradle-build-action@v2
- name: checkout
uses: actions/checkout@v4
- name: tests
run: |
./gradlew owncloudDomain:testDebugUnitTest
data:
runs-on: ubuntu-latest
steps:
- name: Gradle cache
uses: gradle/gradle-build-action@v2
- name: checkout
uses: actions/checkout@v4
- name: tests
run: |
./gradlew owncloudData:testDebugUnitTest