Skip to content

Commit

Permalink
chore: switch to react-native-test-app for example
Browse files Browse the repository at this point in the history
side effect: example is now up to date
  • Loading branch information
mikehardy committed Nov 4, 2023
1 parent 029ce50 commit 1b041d5
Show file tree
Hide file tree
Showing 70 changed files with 9,571 additions and 7,792 deletions.
45 changes: 20 additions & 25 deletions .github/workflows/linting.yml
Original file line number Diff line number Diff line change
Expand Up @@ -8,25 +8,26 @@ on:
branches:
- main

concurrency:
group: ${{ github.workflow }}-${{ github.ref }}
cancel-in-progress: true

jobs:
# linting:
# name: ESLint
# timeout-minutes: 15
# runs-on: ubuntu-latest
# steps:
# - uses: styfle/[email protected]
# with:
# all_but_latest: true
# - uses: actions/checkout@v2
# - uses: actions/checkout@v3
# with:
# fetch-depth: 1
# - uses: actions/setup-node@v2
# - uses: actions/setup-node@v3
# with:
# node-version: 16
# node-version: 18
# - name: Get yarn cache directory path
# id: yarn-cache-dir-path
# run: echo "::set-output name=dir::$(yarn cache dir)"
# - uses: actions/cache@v2
# - uses: actions/cache@v3
# name: Yarn Cache
# id: yarn-cache
# with:
Expand All @@ -35,7 +36,7 @@ jobs:
# restore-keys: |
# ${{ runner.os }}-yarn-
# - name: Yarn Install
# uses: nick-invision/retry@v2
# uses: nick-fields/retry@v2
# with:
# timeout_minutes: 3
# retry_wait_seconds: 30
Expand Down Expand Up @@ -63,19 +64,16 @@ jobs:
runs-on: ubuntu-latest
timeout-minutes: 15
steps:
- uses: styfle/[email protected]
with:
all_but_latest: true
- uses: actions/checkout@v2
- uses: actions/checkout@v4
with:
fetch-depth: 1
- uses: actions/setup-node@v2
- uses: actions/setup-node@v4
with:
node-version: 16
node-version: 18
- name: Get yarn cache directory path
id: yarn-cache-dir-path
run: echo "::set-output name=dir::$(yarn cache dir)"
- uses: actions/cache@v2
- uses: actions/cache@v3
name: Yarn Cache
id: yarn-cache
with:
Expand All @@ -84,7 +82,7 @@ jobs:
restore-keys: |
${{ runner.os }}-yarn-
- name: Yarn Install
uses: nick-invision/retry@v2
uses: nick-fields/retry@v2
with:
timeout_minutes: 3
retry_wait_seconds: 30
Expand All @@ -98,19 +96,16 @@ jobs:
# runs-on: ubuntu-latest
# timeout-minutes: 15
# steps:
# - uses: styfle/[email protected]
# with:
# all_but_latest: true
# - uses: actions/checkout@v2
# - uses: actions/checkout@v4
# with:
# fetch-depth: 1
# - uses: actions/setup-node@v2
# - uses: actions/setup-node@v3
# with:
# node-version: 16
# node-version: 18
# - name: Get yarn cache directory path
# id: yarn-cache-dir-path
# run: echo "::set-output name=dir::$(yarn cache dir)"
# - uses: actions/cache@v2
# - uses: actions/cache@v3
# name: Yarn Cache
# id: yarn-cache
# with:
Expand All @@ -119,14 +114,14 @@ jobs:
# restore-keys: |
# ${{ runner.os }}-yarn-
# - name: Yarn Install
# uses: nick-invision/retry@v2
# uses: nick-fields/retry@v2
# with:
# timeout_minutes: 3
# retry_wait_seconds: 30
# max_attempts: 3
# command: yarn --no-audit --prefer-offline
# - name: Yarn Install (Website)
# uses: nick-invision/retry@v2
# uses: nick-fields/retry@v2
# with:
# timeout_minutes: 3
# retry_wait_seconds: 30
Expand Down
2 changes: 1 addition & 1 deletion .github/workflows/pr_title.yml
Original file line number Diff line number Diff line change
Expand Up @@ -12,6 +12,6 @@ jobs:
env:
GITHUB_TOKEN: ${{ secrets.GH_TOKEN }}
steps:
- uses: amannn/action-semantic-pull-request@v3.4.6
- uses: amannn/action-semantic-pull-request@v5.4.0
with:
validateSingleCommit: true
74 changes: 37 additions & 37 deletions .github/workflows/tests_e2e.yml
Original file line number Diff line number Diff line change
Expand Up @@ -15,6 +15,10 @@ on:
- 'docs/**'
- '**/*.md'

concurrency:
group: ${{ github.workflow }}-${{ github.ref }}
cancel-in-progress: true

jobs:
# ------------------
# Android
Expand All @@ -24,56 +28,52 @@ jobs:
runs-on: ubuntu-latest
timeout-minutes: 70
steps:
- uses: styfle/[email protected]
with:
all_but_latest: true

- uses: actions/checkout@v2
- uses: actions/checkout@v4
with:
fetch-depth: 50

- uses: actions/setup-node@v2
- uses: actions/setup-node@v4
with:
node-version: 16
node-version: 18
- name: Get yarn cache directory path
id: yarn-cache-dir-path
run: echo "::set-output name=dir::$(yarn cache dir)"
run: echo "yarn-cache-dir-path=$(yarn cache dir)" >> $GITHUB_OUTPUT

- uses: actions/cache@v2
- uses: actions/cache@v3
name: Yarn Cache
id: yarn-cache
with:
path: ${{ steps.yarn-cache-dir-path.outputs.dir }}
path: ${{ steps.yarn-cache-dir-path.outputs.yarn-cache-dir-path }}
key: ${{ runner.os }}-yarn-${{ hashFiles('**/package.json') }}-v1

- uses: actions/cache@v2
- uses: actions/cache@v3
name: Gradle Cache
with:
path: ~/.gradle/caches
key: ${{ runner.os }}-gradle-${{ hashFiles('**/*.gradle*') }}-v1

- name: Yarn Install
uses: nick-invision/retry@v2
uses: nick-fields/retry@v2
with:
timeout_minutes: 10
retry_wait_seconds: 60
max_attempts: 3
command: yarn --no-audit --prefer-offline

- name: Configure JDK 1.11
uses: actions/setup-java@v2
- name: Configure JDK
uses: actions/setup-java@v3
with:
distribution: 'temurin'
java-version: '11' # ubuntu-latest is about to default to 11, force it everywhere
java-version: '17'

- name: Verify JDK11
# Default JDK varies depending on different runner flavors, make sure we are on 11
- name: Verify JDK
# Default JDK varies depending on different runner flavors, make we get expected version
# 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'
run: java -fullversion 2>&1 | grep '17.0'
shell: bash

- name: Build Android App
uses: nick-invision/retry@v2
uses: nick-fields/retry@v2
with:
timeout_minutes: 15
retry_wait_seconds: 60
Expand All @@ -85,57 +85,57 @@ jobs:
# ------------------
ios:
name: iOS
runs-on: macos-latest
runs-on: macos-13
# TODO matrix across APIs, at least 10 and 13 (lowest to highest)
timeout-minutes: 60
steps:
- uses: styfle/[email protected]
with:
all_but_latest: true

- uses: actions/checkout@v2
- uses: actions/checkout@v4
with:
fetch-depth: 50

- uses: actions/setup-node@v2
- uses: actions/setup-node@v4
with:
node-version: 16
node-version: 18

- uses: maxim-lobanov/setup-xcode@v1
with:
xcode-version: latest-stable

- name: Get Xcode version
id: xcode-version
run: echo "::set-output name=xcode-version::$(xcodebuild -version|tail -1|cut -f3 -d' ')"

- name: Get yarn cache directory path
id: yarn-cache-dir-path
run: echo "::set-output name=dir::$(yarn cache dir)"
run: echo "yarn-cache-dir-path=$(yarn cache dir)" >> $GITHUB_OUTPUT

- uses: actions/cache@v2
- uses: actions/cache@v3
name: Yarn Cache
id: yarn-cache
with:
path: ${{ steps.yarn-cache-dir-path.outputs.dir }}
path: ${{ steps.yarn-cache-dir-path.outputs.yarn-cache-dir-path }}
key: ${{ runner.os }}-yarn-${{ hashFiles('**/package.json') }}-v1

- uses: actions/cache@v2
- uses: actions/cache@v3
name: Cache Pods
with:
path: example/ios/Pods
key: ${{ runner.os }}-pods-${{ hashFiles('**/Podfile.lock') }}-v1

- name: Update brew build tools
uses: nick-fields/retry@v2
with:
timeout_minutes: 10
retry_wait_seconds: 60
max_attempts: 3
command: brew install xcbeautify

- name: Update Ruby build tools
uses: nick-invision/retry@v2
uses: nick-fields/retry@v2
with:
timeout_minutes: 10
retry_wait_seconds: 60
max_attempts: 3
command: gem update cocoapods xcodeproj

- name: Yarn and Pod Install
uses: nick-invision/retry@v2
uses: nick-fields/retry@v2
with:
timeout_minutes: 10
retry_wait_seconds: 60
Expand Down
3 changes: 0 additions & 3 deletions example/.babelrc

This file was deleted.

9 changes: 0 additions & 9 deletions example/.buckconfig

This file was deleted.

10 changes: 0 additions & 10 deletions example/.editorconfig

This file was deleted.

65 changes: 0 additions & 65 deletions example/.flowconfig

This file was deleted.

15 changes: 15 additions & 0 deletions example/.gitignore
Original file line number Diff line number Diff line change
@@ -0,0 +1,15 @@
*.binlog
*.hprof
*.xcworkspace/
*.zip
.DS_Store
.gradle/
.idea/
.vs/
.xcode.env
Pods/
build/
dist/
local.properties
msbuild.binlog
node_modules/
Loading

0 comments on commit 1b041d5

Please sign in to comment.