File tree 5 files changed +49
-17
lines changed
5 files changed +49
-17
lines changed Original file line number Diff line number Diff line change 2
2
EXTEND_ESLINT = true
3
3
REACT_APP_API_BASE_URL = https://saytheirnames.dev/api
4
4
REACT_APP_GA_TRACKING_ID = GA_TRACKING_ID
5
-
5
+ REACT_APP_NEWS_FETCH_PROXY = REACT_APP_NEWS_FETCH_PROXY
6
+ REACT_APP_TWITTER_URL = REACT_APP_TWITTER_URL
7
+ REACT_APP_FACEBOOK_URL = REACT_APP_FACEBOOK_URL
8
+ REACT_APP_INSTAGRAM_URL = REACT_APP_INSTAGRAM_URL
9
+ REACT_APP_ANDROID_URL = REACT_APP_ANDROID_URL
10
+ REACT_APP_IOS_URL = REACT_APP_IOS_URL
Original file line number Diff line number Diff line change @@ -2,17 +2,21 @@ name: Unit Test Workflow
2
2
3
3
on :
4
4
pull_request :
5
- branches : [ master, development ]
5
+ branches : [master, development]
6
6
7
7
jobs :
8
8
unit_test_pull_request :
9
9
runs-on : ubuntu-latest
10
- steps :
11
- - uses : actions/checkout@v2
12
- - uses : actions/setup-node@v1
13
- with :
14
- node-version : 12
15
- - name : Install Node Dependencies
16
- run : yarn install --frozen-lockfile
17
- - name : Run all Unit Tests
18
- run : CI=true yarn test
10
+ steps :
11
+ - uses : actions/checkout@v2
12
+ - uses : actions/setup-node@v1
13
+ with :
14
+ node-version : 12
15
+ - name : Install Node Dependencies
16
+ run : yarn install --frozen-lockfile
17
+ - name : Run all Unit Tests
18
+ run : CI=true yarn test
19
+ env :
20
+ REACT_APP_TWITTER_URL : https://twitter.com/SayTheirName_io
21
+ REACT_APP_FACEBOOK_URL : https://www.facebook.com/Say-Their-Names-108926117523025/?modal=admin_todo_tour
22
+ REACT_APP_INSTAGRAM_URL : https://www.instagram.com/saytheirname.iocat
Original file line number Diff line number Diff line change
1
+ ![ Unit Test Workflow] ( https://github.com/Say-Their-Name/say-their-names-web/workflows/Unit%20Test%20Workflow/badge.svg )
2
+
1
3
# Say Their Names ✊🏿
2
4
3
5
## Overview
@@ -28,12 +30,24 @@ Using SSH:
28
30
```
29
31
30
32
### Navigate to app
33
+
31
34
``` sh
32
35
cd say-their-names-web
33
36
```
34
37
35
38
### Add Environment Variable
36
- Create a ` .env ` file in the root of the project and copy the contents of ` .env.example ` file to the newly created ` .env ` file.
39
+
40
+ Create a ` .env ` file in the root of the project and copy the contents below to the newly created ` .env ` file.
41
+
42
+ ```
43
+ REACT_APP_API_BASE_URL=https://saytheirnames.dev/api
44
+ REACT_APP_NEWS_FETCH_PROXY=https://thingproxy.freeboard.io/fetch
45
+ REACT_APP_TWITTER_URL=https://twitter.com/SayTheirName_io
46
+ REACT_APP_FACEBOOK_URL=https://www.facebook.com/Say-Their-Names-108926117523025/?modal=admin_todo_tour
47
+ REACT_APP_INSTAGRAM_URL=https://www.instagram.com/saytheirname.io
48
+ REACT_APP_ANDROID_URL=https://play.google.com/store/apps/details?id=io.saytheirnames.android
49
+ REACT_APP_IOS_URL=https://apps.apple.com/app/say-their-names/id1517599626
50
+ ```
37
51
38
52
### Installing Dependencies
39
53
Original file line number Diff line number Diff line change @@ -17,6 +17,7 @@ const News = ({ news }) => {
17
17
minLine = { 1 }
18
18
url = { news . url }
19
19
loadSecureUrl
20
+ proxyUrl = { process . env . REACT_APP_NEWS_FETCH_PROXY }
20
21
onSuccess = { ( ) => setDisplay ( 'block' ) }
21
22
onError = { ( ) => setDisplay ( 'none' ) }
22
23
/>
Original file line number Diff line number Diff line change
1
+ const {
2
+ REACT_APP_TWITTER_URL ,
3
+ REACT_APP_FACEBOOK_URL ,
4
+ REACT_APP_INSTAGRAM_URL ,
5
+ REACT_APP_ANDROID_URL ,
6
+ REACT_APP_IOS_URL
7
+ } = process . env ;
8
+
1
9
export default {
2
- TWITTER_URL : 'https://twitter.com/SayTheirName_io' ,
3
- FACEBOOK_URL : 'https://www.facebook.com/Say-Their-Names-108926117523025/?modal=admin_todo_tour' ,
4
- INSTAGRAM_URL : 'https://www.instagram.com/saytheirname.io/' ,
5
- ANDROID_URL : '#' ,
6
- IOS_URL : 'https://apps.apple.com/app/say-their-names/id1517599626'
10
+ TWITTER_URL : REACT_APP_TWITTER_URL ,
11
+ FACEBOOK_URL : REACT_APP_FACEBOOK_URL ,
12
+ INSTAGRAM_URL : REACT_APP_INSTAGRAM_URL ,
13
+ ANDROID_URL : REACT_APP_ANDROID_URL ,
14
+ IOS_URL : REACT_APP_IOS_URL
7
15
} ;
You can’t perform that action at this time.
0 commit comments