Skip to content

Commit ece3f92

Browse files
authored
Merge pull request #33 from studyplus/github_actions
Update unit test workflow
2 parents 9759336 + c3be7bf commit ece3f92

File tree

1 file changed

+12
-17
lines changed

1 file changed

+12
-17
lines changed

.github/workflows/unit_test.yml

Lines changed: 12 additions & 17 deletions
Original file line numberDiff line numberDiff line change
@@ -1,33 +1,28 @@
11
name: Unit test
22

3-
on:
3+
on:
44
push:
5-
branches:
6-
- master
5+
branches:
6+
- main
77

88
jobs:
99
unit_test:
1010
runs-on: ubuntu-latest
1111
steps:
12-
- name: Checkout
13-
uses: actions/[email protected]
12+
- uses: actions/checkout@v2
1413

15-
- name: Gradle dist Cache
16-
uses: actions/[email protected]
14+
- uses: actions/cache@v2
1715
with:
18-
path: ~/.gradle/wrapper
19-
key: ${{ runner.os }}-dist-gradle-${{ hashFiles('**/gradle-wrapper.properties') }}
20-
- name: Gradle dependencies Cache
21-
uses: actions/[email protected]
22-
with:
23-
path: ~/.gradle/caches
24-
key: ${{ runner.os }}-v1-gradle-${{ hashFiles('**/build.gradle') }}
16+
path: |
17+
~/.gradle/caches
18+
~/.gradle/wrapper
19+
key: ${{ runner.os }}-gradle-${{ hashFiles('**/*.gradle*', '**/gradle-wrapper.properties') }}
2520
restore-keys: |
26-
${{ runner.os }}-v1-gradle-
27-
- name: Download Dependencies
21+
${{ runner.os }}-gradle-
22+
- name: Download dependencies
2823
run: |
2924
./gradlew androidDependencies --no-daemon
3025
3126
- name: Run unit test
3227
run: |
33-
./gradlew studyplus-android-sdk:test --no-daemon
28+
./gradlew studyplus-android-sdk:test --no-daemon

0 commit comments

Comments
 (0)