Skip to content

Commit 336707e

Browse files
committed
chore: switch to react-native-test-app for example
side effect: example is now up to date
1 parent b593f02 commit 336707e

File tree

70 files changed

+9571
-7792
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

70 files changed

+9571
-7792
lines changed

.github/workflows/linting.yml

Lines changed: 20 additions & 25 deletions
Original file line numberDiff line numberDiff line change
@@ -8,25 +8,26 @@ on:
88
branches:
99
- main
1010

11+
concurrency:
12+
group: ${{ github.workflow }}-${{ github.ref }}
13+
cancel-in-progress: true
14+
1115
jobs:
1216
# linting:
1317
# name: ESLint
1418
# timeout-minutes: 15
1519
# runs-on: ubuntu-latest
1620
# steps:
17-
# - uses: styfle/[email protected]
18-
# with:
19-
# all_but_latest: true
20-
# - uses: actions/checkout@v2
21+
# - uses: actions/checkout@v3
2122
# with:
2223
# fetch-depth: 1
23-
# - uses: actions/setup-node@v2
24+
# - uses: actions/setup-node@v3
2425
# with:
25-
# node-version: 16
26+
# node-version: 18
2627
# - name: Get yarn cache directory path
2728
# id: yarn-cache-dir-path
2829
# run: echo "::set-output name=dir::$(yarn cache dir)"
29-
# - uses: actions/cache@v2
30+
# - uses: actions/cache@v3
3031
# name: Yarn Cache
3132
# id: yarn-cache
3233
# with:
@@ -35,7 +36,7 @@ jobs:
3536
# restore-keys: |
3637
# ${{ runner.os }}-yarn-
3738
# - name: Yarn Install
38-
# uses: nick-invision/retry@v2
39+
# uses: nick-fields/retry@v2
3940
# with:
4041
# timeout_minutes: 3
4142
# retry_wait_seconds: 30
@@ -63,19 +64,16 @@ jobs:
6364
runs-on: ubuntu-latest
6465
timeout-minutes: 15
6566
steps:
66-
- uses: styfle/[email protected]
67-
with:
68-
all_but_latest: true
69-
- uses: actions/checkout@v2
67+
- uses: actions/checkout@v4
7068
with:
7169
fetch-depth: 1
72-
- uses: actions/setup-node@v2
70+
- uses: actions/setup-node@v4
7371
with:
74-
node-version: 16
72+
node-version: 18
7573
- name: Get yarn cache directory path
7674
id: yarn-cache-dir-path
7775
run: echo "::set-output name=dir::$(yarn cache dir)"
78-
- uses: actions/cache@v2
76+
- uses: actions/cache@v3
7977
name: Yarn Cache
8078
id: yarn-cache
8179
with:
@@ -84,7 +82,7 @@ jobs:
8482
restore-keys: |
8583
${{ runner.os }}-yarn-
8684
- name: Yarn Install
87-
uses: nick-invision/retry@v2
85+
uses: nick-fields/retry@v2
8886
with:
8987
timeout_minutes: 3
9088
retry_wait_seconds: 30
@@ -98,19 +96,16 @@ jobs:
9896
# runs-on: ubuntu-latest
9997
# timeout-minutes: 15
10098
# steps:
101-
# - uses: styfle/[email protected]
102-
# with:
103-
# all_but_latest: true
104-
# - uses: actions/checkout@v2
99+
# - uses: actions/checkout@v4
105100
# with:
106101
# fetch-depth: 1
107-
# - uses: actions/setup-node@v2
102+
# - uses: actions/setup-node@v3
108103
# with:
109-
# node-version: 16
104+
# node-version: 18
110105
# - name: Get yarn cache directory path
111106
# id: yarn-cache-dir-path
112107
# run: echo "::set-output name=dir::$(yarn cache dir)"
113-
# - uses: actions/cache@v2
108+
# - uses: actions/cache@v3
114109
# name: Yarn Cache
115110
# id: yarn-cache
116111
# with:
@@ -119,14 +114,14 @@ jobs:
119114
# restore-keys: |
120115
# ${{ runner.os }}-yarn-
121116
# - name: Yarn Install
122-
# uses: nick-invision/retry@v2
117+
# uses: nick-fields/retry@v2
123118
# with:
124119
# timeout_minutes: 3
125120
# retry_wait_seconds: 30
126121
# max_attempts: 3
127122
# command: yarn --no-audit --prefer-offline
128123
# - name: Yarn Install (Website)
129-
# uses: nick-invision/retry@v2
124+
# uses: nick-fields/retry@v2
130125
# with:
131126
# timeout_minutes: 3
132127
# retry_wait_seconds: 30

.github/workflows/pr_title.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -12,6 +12,6 @@ jobs:
1212
env:
1313
GITHUB_TOKEN: ${{ secrets.GH_TOKEN }}
1414
steps:
15-
- uses: amannn/action-semantic-pull-request@v3.4.6
15+
- uses: amannn/action-semantic-pull-request@v5.4.0
1616
with:
1717
validateSingleCommit: true

.github/workflows/tests_e2e.yml

Lines changed: 37 additions & 37 deletions
Original file line numberDiff line numberDiff line change
@@ -15,6 +15,10 @@ on:
1515
- 'docs/**'
1616
- '**/*.md'
1717

18+
concurrency:
19+
group: ${{ github.workflow }}-${{ github.ref }}
20+
cancel-in-progress: true
21+
1822
jobs:
1923
# ------------------
2024
# Android
@@ -24,56 +28,52 @@ jobs:
2428
runs-on: ubuntu-latest
2529
timeout-minutes: 70
2630
steps:
27-
- uses: styfle/[email protected]
28-
with:
29-
all_but_latest: true
30-
31-
- uses: actions/checkout@v2
31+
- uses: actions/checkout@v4
3232
with:
3333
fetch-depth: 50
3434

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

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

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

5555
- name: Yarn Install
56-
uses: nick-invision/retry@v2
56+
uses: nick-fields/retry@v2
5757
with:
5858
timeout_minutes: 10
5959
retry_wait_seconds: 60
6060
max_attempts: 3
6161
command: yarn --no-audit --prefer-offline
6262

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

69-
- name: Verify JDK11
70-
# Default JDK varies depending on different runner flavors, make sure we are on 11
69+
- name: Verify JDK
70+
# Default JDK varies depending on different runner flavors, make we get expected version
7171
# Run a check that exits with error unless it is 11 version to future-proof against unexpected upgrades
72-
run: java -fullversion 2>&1 | grep '11.0'
72+
run: java -fullversion 2>&1 | grep '17.0'
7373
shell: bash
7474

7575
- name: Build Android App
76-
uses: nick-invision/retry@v2
76+
uses: nick-fields/retry@v2
7777
with:
7878
timeout_minutes: 15
7979
retry_wait_seconds: 60
@@ -85,57 +85,57 @@ jobs:
8585
# ------------------
8686
ios:
8787
name: iOS
88-
runs-on: macos-latest
88+
runs-on: macos-13
8989
# TODO matrix across APIs, at least 10 and 13 (lowest to highest)
9090
timeout-minutes: 60
9191
steps:
92-
- uses: styfle/[email protected]
93-
with:
94-
all_but_latest: true
95-
96-
- uses: actions/checkout@v2
92+
- uses: actions/checkout@v4
9793
with:
9894
fetch-depth: 50
9995

100-
- uses: actions/setup-node@v2
96+
- uses: actions/setup-node@v4
10197
with:
102-
node-version: 16
98+
node-version: 18
10399

104100
- uses: maxim-lobanov/setup-xcode@v1
105101
with:
106102
xcode-version: latest-stable
107103

108-
- name: Get Xcode version
109-
id: xcode-version
110-
run: echo "::set-output name=xcode-version::$(xcodebuild -version|tail -1|cut -f3 -d' ')"
111-
112104
- name: Get yarn cache directory path
113105
id: yarn-cache-dir-path
114-
run: echo "::set-output name=dir::$(yarn cache dir)"
106+
run: echo "yarn-cache-dir-path=$(yarn cache dir)" >> $GITHUB_OUTPUT
115107

116-
- uses: actions/cache@v2
108+
- uses: actions/cache@v3
117109
name: Yarn Cache
118110
id: yarn-cache
119111
with:
120-
path: ${{ steps.yarn-cache-dir-path.outputs.dir }}
112+
path: ${{ steps.yarn-cache-dir-path.outputs.yarn-cache-dir-path }}
121113
key: ${{ runner.os }}-yarn-${{ hashFiles('**/package.json') }}-v1
122114

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

121+
- name: Update brew build tools
122+
uses: nick-fields/retry@v2
123+
with:
124+
timeout_minutes: 10
125+
retry_wait_seconds: 60
126+
max_attempts: 3
127+
command: brew install xcbeautify
128+
129129
- name: Update Ruby build tools
130-
uses: nick-invision/retry@v2
130+
uses: nick-fields/retry@v2
131131
with:
132132
timeout_minutes: 10
133133
retry_wait_seconds: 60
134134
max_attempts: 3
135135
command: gem update cocoapods xcodeproj
136136

137137
- name: Yarn and Pod Install
138-
uses: nick-invision/retry@v2
138+
uses: nick-fields/retry@v2
139139
with:
140140
timeout_minutes: 10
141141
retry_wait_seconds: 60

example/.babelrc

Lines changed: 0 additions & 3 deletions
This file was deleted.

example/.buckconfig

Lines changed: 0 additions & 9 deletions
This file was deleted.

example/.editorconfig

Lines changed: 0 additions & 10 deletions
This file was deleted.

example/.flowconfig

Lines changed: 0 additions & 65 deletions
This file was deleted.

example/.gitignore

Lines changed: 15 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,15 @@
1+
*.binlog
2+
*.hprof
3+
*.xcworkspace/
4+
*.zip
5+
.DS_Store
6+
.gradle/
7+
.idea/
8+
.vs/
9+
.xcode.env
10+
Pods/
11+
build/
12+
dist/
13+
local.properties
14+
msbuild.binlog
15+
node_modules/

0 commit comments

Comments
 (0)