forked from invertase/notifee
-
Notifications
You must be signed in to change notification settings - Fork 0
55 lines (47 loc) · 1.4 KB
/
tests_junit.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
51
52
53
54
55
name: JUnit Tests
on:
workflow_dispatch:
pull_request:
paths:
- '.github/workflows/*.yml'
- 'android/**'
push:
branches:
- main
paths-ignore:
- 'docs-react-native/**'
- '**/*.md'
jobs:
unit:
name: JUnit Tests
timeout-minutes: 20
runs-on: ubuntu-latest
steps:
- uses: styfle/[email protected]
- uses: actions/checkout@v2
with:
fetch-depth: 50
- name: Configure JDK 1.11
uses: actions/setup-java@v2
with:
distribution: 'adopt'
java-version: '11' # ubuntu-latest is about to default to 11, force it everywhere
- name: Verify JDK11
# Default JDK varies depending on different runner flavors, make sure we are on 11
# Run a check that exits with error unless it is 11 version to future-proof against unexpected upgrades
run: java -fullversion 2>&1 | grep '11.0'
shell: bash
- name: Gradle Cache
uses: actions/cache@v2
with:
path: ~/.gradle/caches
key: ${{ runner.os }}-gradle-${{ hashFiles('**/*.gradle*') }}-v1
- name: Resolve Gradle Dependencies
uses: nick-invision/retry@v2
with:
timeout_minutes: 10
retry_wait_seconds: 60
max_attempts: 3
command: yarn build:core:android
- name: Run JUnit Tests
run: yarn test:core:android