build(deps): get react-native code and CI working on current toolchains #538
Workflow file for this run
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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 | |
uses: actions/setup-java@v4 | |
with: | |
distribution: 'temurin' | |
java-version: '17' | |
- 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 |