File tree Expand file tree Collapse file tree 7 files changed +45
-8
lines changed Expand file tree Collapse file tree 7 files changed +45
-8
lines changed Original file line number Diff line number Diff line change 13
13
- name : Install dependencies
14
14
run : yarn install --immutable
15
15
shell : bash
16
+
17
+ - name : Extract repository name from GITHUB_REPOSITORY
18
+ shell : bash
19
+ run : |
20
+ REPO_NAME="${GITHUB_REPOSITORY##*/}"
21
+ echo "GITHUB_REPOSITORY_NAME=$REPO_NAME" >> "$GITHUB_ENV"
Original file line number Diff line number Diff line change 16
16
push :
17
17
branches :
18
18
- main
19
+ - 50-e2e-stability
19
20
20
21
workflow_dispatch :
21
22
78
79
79
80
- name : Setup
80
81
uses : ./.github/actions/setup
82
+ s
83
+ - name : Download artifact
84
+ run : |
85
+ cd examples/bare-example
86
+ npx rnef remote-cache list-all
87
+ npx rnef remote-cache download --name "${{ needs.build-release.outputs.artifact-id }}"
81
88
82
89
- name : Install Maestro
83
90
uses : ./.github/actions/installMaestro
90
97
sudo udevadm control --reload-rules
91
98
sudo udevadm trigger --name-match=kvm
92
99
93
- - name : Download artifact
94
- run : |
95
- npx rnef remote-cache download --name "${{ needs.build-release.outputs.artifact-id }}"
96
-
97
100
- name : AVD cache
98
101
uses : actions/cache@v4
99
102
id : avd-cache
Original file line number Diff line number Diff line change @@ -73,13 +73,14 @@ jobs:
73
73
with :
74
74
fetch-depth : 0
75
75
76
+ - name : Setup
77
+ uses : ./.github/actions/setup
78
+
76
79
- name : Download artifact
77
80
run : |
81
+ cd examples/bare-example
78
82
npx rnef remote-cache download --name "${{ needs.build-release.outputs.artifact-id }}"
79
83
80
- - name : Setup
81
- uses : ./.github/actions/setup
82
-
83
84
- name : Install Maestro
84
85
uses : ./.github/actions/installMaestro
85
86
with :
Original file line number Diff line number Diff line change @@ -38,6 +38,8 @@ android/config/
38
38
ios /Settings.bundle /
39
39
ios /license_plist.yml
40
40
.rnef /
41
+ .env
42
+ .env.local
41
43
42
44
# node.js
43
45
#
Original file line number Diff line number Diff line change 37
37
"@types/jest" : " ^29.5.13" ,
38
38
"@types/react" : " ^19.1.0" ,
39
39
"@types/react-test-renderer" : " ^19.1.0" ,
40
+ "dotenv" : " ^17.2.0" ,
40
41
"jest" : " ^29.6.3" ,
41
42
"react-test-renderer" : " 19.1.0"
42
43
},
Original file line number Diff line number Diff line change 1
1
// @ts -check
2
2
import { platformIOS } from '@rnef/platform-ios' ;
3
3
import { platformAndroid } from '@rnef/platform-android' ;
4
+ import { providerGitHub } from '@rnef/provider-github' ;
4
5
import { pluginMetro } from '@rnef/plugin-metro' ;
6
+ import 'dotenv/config' ;
5
7
6
8
/** @type {import('@rnef/cli').Config } */
7
9
export default {
@@ -10,5 +12,19 @@ export default {
10
12
ios : platformIOS ( ) ,
11
13
android : platformAndroid ( ) ,
12
14
} ,
13
- remoteCacheProvider : 'github-actions' ,
15
+ remoteCacheProvider : ! hasGithubConfig ( )
16
+ ? null
17
+ : providerGitHub ( {
18
+ owner : process . env . GITHUB_REPOSITORY_OWNER ,
19
+ repository : process . env . GITHUB_REPOSITORY_NAME ,
20
+ token : process . env . GITHUB_TOKEN ,
21
+ } ) ,
14
22
} ;
23
+
24
+ function hasGithubConfig ( ) {
25
+ return (
26
+ process . env . GITHUB_REPOSITORY_OWNER != null &&
27
+ process . env . GITHUB_REPOSITORY_NAME != null &&
28
+ process . env . GITHUB_TOKEN != null
29
+ ) ;
30
+ }
Original file line number Diff line number Diff line change @@ -8506,6 +8506,13 @@ __metadata:
8506
8506
languageName: node
8507
8507
linkType: hard
8508
8508
8509
+ "dotenv@npm:^17.2.0":
8510
+ version: 17.2.0
8511
+ resolution: "dotenv@npm:17.2.0"
8512
+ checksum: 389d25dac7afeb1890bcd113c84d8d8175e95967559e90b8a6c8dc19bfc81ad3ede0036873c459cd8de1f90055a88232ddf74c550bcd2ea7a94b8d570f116470
8513
+ languageName: node
8514
+ linkType: hard
8515
+
8509
8516
"dotenv@npm:^8.1.0":
8510
8517
version: 8.6.0
8511
8518
resolution: "dotenv@npm:8.6.0"
@@ -16166,6 +16173,7 @@ __metadata:
16166
16173
"@types/jest": ^29.5.13
16167
16174
"@types/react": ^19.1.0
16168
16175
"@types/react-test-renderer": ^19.1.0
16176
+ dotenv: ^17.2.0
16169
16177
jest: ^29.6.3
16170
16178
react: 19.1.0
16171
16179
react-native: 0.80.1
You can’t perform that action at this time.
0 commit comments