Skip to content

Commit

Permalink
Merge pull request #153 from Say-Their-Name/chore/add-android-url
Browse files Browse the repository at this point in the history
Add android app url
  • Loading branch information
Easybuoy authored Jul 2, 2020
2 parents fbf32a6 + 1bf9cb9 commit fd9fbdc
Show file tree
Hide file tree
Showing 4 changed files with 47 additions and 16 deletions.
5 changes: 5 additions & 0 deletions .env.example
Original file line number Diff line number Diff line change
Expand Up @@ -3,3 +3,8 @@ EXTEND_ESLINT=true
REACT_APP_API_BASE_URL=https://saytheirnames.dev/api
REACT_APP_GA_TRACKING_ID=GA_TRACKING_ID
REACT_APP_NEWS_FETCH_PROXY=REACT_APP_NEWS_FETCH_PROXY
REACT_APP_TWITTER_URL=REACT_APP_TWITTER_URL
REACT_APP_FACEBOOK_URL=REACT_APP_FACEBOOK_URL
REACT_APP_INSTAGRAM_URL=REACT_APP_INSTAGRAM_URL
REACT_APP_ANDROID_URL=REACT_APP_ANDROID_URL
REACT_APP_IOS_URL=REACT_APP_IOS_URL
24 changes: 14 additions & 10 deletions .github/workflows/unit-test.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -2,17 +2,21 @@ name: Unit Test Workflow

on:
pull_request:
branches: [ master, development ]
branches: [master, development]

jobs:
unit_test_pull_request:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v2
- uses: actions/setup-node@v1
with:
node-version: 12
- name: Install Node Dependencies
run: yarn install --frozen-lockfile
- name: Run all Unit Tests
run: CI=true yarn test
steps:
- uses: actions/checkout@v2
- uses: actions/setup-node@v1
with:
node-version: 12
- name: Install Node Dependencies
run: yarn install --frozen-lockfile
- name: Run all Unit Tests
run: CI=true yarn test
env:
REACT_APP_TWITTER_URL: https://twitter.com/SayTheirName_io
REACT_APP_FACEBOOK_URL: https://www.facebook.com/Say-Their-Names-108926117523025/?modal=admin_todo_tour
REACT_APP_INSTAGRAM_URL: Octohttps://www.instagram.com/saytheirname.iocat
16 changes: 15 additions & 1 deletion README.md
Original file line number Diff line number Diff line change
@@ -1,3 +1,5 @@
![Unit Test Workflow](https://github.com/Say-Their-Name/say-their-names-web/workflows/Unit%20Test%20Workflow/badge.svg)

# Say Their Names ✊🏿

## Overview
Expand Down Expand Up @@ -28,12 +30,24 @@ Using SSH:
```

### Navigate to app

```sh
cd say-their-names-web
```

### Add Environment Variable
Create a `.env` file in the root of the project and copy the contents of `.env.example` file to the newly created `.env` file.

Create a `.env` file in the root of the project and copy the contents below to the newly created `.env` file.

```
REACT_APP_API_BASE_URL=https://saytheirnames.dev/api
REACT_APP_NEWS_FETCH_PROXY=https://thingproxy.freeboard.io/fetch
REACT_APP_TWITTER_URL=https://twitter.com/SayTheirName_io
REACT_APP_FACEBOOK_URL=https://www.facebook.com/Say-Their-Names-108926117523025/?modal=admin_todo_tour
REACT_APP_INSTAGRAM_URL=https://www.instagram.com/saytheirname.io
REACT_APP_ANDROID_URL=https://play.google.com/store/apps/details?id=io.saytheirnames.android
REACT_APP_IOS_URL=https://apps.apple.com/app/say-their-names/id1517599626
```

### Installing Dependencies

Expand Down
18 changes: 13 additions & 5 deletions src/constants/Variables.js
Original file line number Diff line number Diff line change
@@ -1,7 +1,15 @@
const {
REACT_APP_TWITTER_URL,
REACT_APP_FACEBOOK_URL,
REACT_APP_INSTAGRAM_URL,
REACT_APP_ANDROID_URL,
REACT_APP_IOS_URL
} = process.env;

export default {
TWITTER_URL: 'https://twitter.com/SayTheirName_io',
FACEBOOK_URL: 'https://www.facebook.com/Say-Their-Names-108926117523025/?modal=admin_todo_tour',
INSTAGRAM_URL: 'https://www.instagram.com/saytheirname.io/',
ANDROID_URL: '#',
IOS_URL: 'https://apps.apple.com/app/say-their-names/id1517599626'
TWITTER_URL: REACT_APP_TWITTER_URL,
FACEBOOK_URL: REACT_APP_FACEBOOK_URL,
INSTAGRAM_URL: REACT_APP_INSTAGRAM_URL,
ANDROID_URL: REACT_APP_ANDROID_URL,
IOS_URL: REACT_APP_IOS_URL
};

0 comments on commit fd9fbdc

Please sign in to comment.