Skip to content

Commit 85deef9

Browse files
Remove Real Names
1 parent 4771767 commit 85deef9

File tree

6 files changed

+13
-97
lines changed

6 files changed

+13
-97
lines changed

.github/workflows/deploy.yml

-66
This file was deleted.

.github/workflows/e2e.yml

+8-20
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@ on:
44
inputs:
55
environment:
66
type: choice
7-
description: The E2E tests can be run directly on the github branch or on the development environment URL ([TO_FILL:ProjectDevURL, example: https://console.virtualoutbound.com]).
7+
description: The E2E tests can be run directly on the github branch or on the development environment URL ([TO_FILL:ProjectDevURL, example: https://console.com]).
88
required: true
99
options:
1010
- selected-branch
@@ -32,17 +32,11 @@ jobs:
3232
node-version: 14.x
3333
- name: Install yarn
3434
run: npm install -g yarn
35-
- name: Retrieve User Pool
36-
run: |
37-
export USER_POOL=$(aws secretsmanager get-secret-value --secret-id oai-dev-secret-content-userpool --query=SecretString --output=text)
38-
echo "USER_POOL=$USER_POOL" >> $GITHUB_ENV
3935
- name: Run Solutions Tests
4036
uses: cypress-io/github-action@v2
4137
env:
42-
REACT_APP_CONTENT_URL: 'https://content.phoenix.newdev.virtualoutbound.com/'
43-
REACT_APP_user_pool: ${{ env.USER_POOL }}
38+
REACT_APP_CONTENT_URL: 'https://content.com/'
4439
with:
45-
working-directory: source
4640
start: yarn run start
4741
wait-on: http://localhost:3000
4842
wait-on-timeout: 6000
@@ -55,13 +49,13 @@ jobs:
5549
if: failure()
5650
with:
5751
name: cypress-videos
58-
path: source/cypress/videos
52+
path: cypress/videos
5953
- name: Save screenshots to an artifact on failure
6054
uses: actions/upload-artifact@v1
6155
if: failure()
6256
with:
6357
name: cypress-screenshots
64-
path: source/cypress/screenshots
58+
path: cypress/screenshots
6559

6660
run-dev-url-tests:
6761
if: github.event.inputs.environment == 'dev-url'
@@ -80,33 +74,27 @@ jobs:
8074
node-version: 14.x
8175
- name: Install yarn
8276
run: npm install -g yarn
83-
- name: Retrieve User Pool
84-
run: |
85-
export USER_POOL=$(aws secretsmanager get-secret-value --secret-id oai-dev-secret-content-userpool --query=SecretString --output=text)
86-
echo "USER_POOL=$USER_POOL" >> $GITHUB_ENV
8777
- name: Run Solutions Tests
8878
uses: cypress-io/github-action@v2
8979
env:
90-
REACT_APP_CONTENT_URL: 'https://content.phoenix.newdev.virtualoutbound.com/'
91-
REACT_APP_user_pool: ${{ env.USER_POOL }}
80+
REACT_APP_CONTENT_URL: 'backend.url'
9281
with:
93-
working-directory: source
9482
# start: yarn run start
9583
# wait-on: http://localhost:3000
9684
# wait-on-timeout: 6000
9785
# record: true
9886
# group: chrome
9987
# parallel: true
100-
command: yarn run test:e2e --config baseUrl=[TO_FILL:ProjectDevURL, example: https://console.virtualoutbound.com]
88+
command: yarn run test:e2e --config baseUrl="google.com"
10189
- name: Save video recordings to an artifact on failure
10290
uses: actions/upload-artifact@v1
10391
if: failure()
10492
with:
10593
name: cypress-videos
106-
path: source/cypress/videos
94+
path: cypress/videos
10795
- name: Save screenshots to an artifact on failure
10896
uses: actions/upload-artifact@v1
10997
if: failure()
11098
with:
11199
name: cypress-screenshots
112-
path: source/cypress/screenshots
100+
path: cypress/screenshots

.github/workflows/push.yml

+1-7
Original file line numberDiff line numberDiff line change
@@ -24,17 +24,11 @@ jobs:
2424
run: uname -a
2525
- name: Retrieve mem info
2626
run: free -h
27-
- name: Retrieve User Pool
28-
run: |
29-
export USER_POOL=$(aws secretsmanager get-secret-value --secret-id oai-dev-secret-content-userpool --query=SecretString --output=text)
30-
echo "USER_POOL=$USER_POOL" >> $GITHUB_ENV
3127
- name: Run Solutions Tests
3228
uses: cypress-io/github-action@v2
3329
env:
34-
REACT_APP_CONTENT_URL: 'https://content.phoenix.newdev.virtualoutbound.com/'
35-
REACT_APP_user_pool: ${{ env.USER_POOL }}
30+
REACT_APP_CONTENT_URL: 'https://content.com/'
3631
with:
37-
working-directory: source
3832
# record: true
3933
# group: chrome
4034
# parallel: true

README.md

+2-2
Original file line numberDiff line numberDiff line change
@@ -44,8 +44,8 @@ To get this project up and running locally, you must have [node](https://nodejs.
4444
```bash
4545
> npx husky install
4646

47-
# IMPORTANT! Only if the .husky/pre-commit is not defined already or it does not contain `cd source && yarn lint-staged`
48-
> npx husky add .husky/pre-commit "cd source && yarn lint-staged"
47+
# IMPORTANT! Only if the .husky/pre-commit is not defined already or it does not contain `yarn lint-staged`
48+
> npx husky add .husky/pre-commit "yarn lint-staged"
4949
```
5050
3. Run `yarn start` to start the project, it should automatically redirect or you can now navigate to `http://localhost:3000` to view the app. The server refreshes every time you make a change to a file.<br>
5151
4. Most important, enjoy the app!<br>

build-production.sh

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
#!/bin/sh
22

3-
export REACT_APP_CONTENT_URL=https://content.phoenix.virtualoutbound.com/
3+
export REACT_APP_CONTENT_URL=https://content.com/
44
export REACT_APP_user_pool="get a secret key from somewhere using a CLI"
55

66
yarn run build

package.json

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
{
2-
"name": "source",
2+
"name": "template-react",
33
"version": "0.1.0",
44
"private": true,
55
"license": "UNLICENSED",

0 commit comments

Comments
 (0)