Skip to content

Commit

Permalink
Merge pull request #499 from USEPA/develop
Browse files Browse the repository at this point in the history
Sync staging with develop
  • Loading branch information
courtneymyers authored Oct 25, 2024
2 parents bfcb80e + f1255cd commit 38a0587
Show file tree
Hide file tree
Showing 15 changed files with 8,622 additions and 9,233 deletions.
10 changes: 5 additions & 5 deletions .github/workflows/dev.yml
Original file line number Diff line number Diff line change
Expand Up @@ -41,7 +41,7 @@ jobs:
# SAML_PRIVATE_KEY: ${{ secrets.SAML_PRIVATE_KEY }}
JWT_PUBLIC_KEY: ${{ secrets.JWT_PUBLIC_KEY }}
JWT_PRIVATE_KEY: ${{ secrets.JWT_PRIVATE_KEY }}
CSB_REBATE_YEAR: 2023
CSB_REBATE_YEAR: 2024
CSB_2022_FRF_OPEN: true
CSB_2022_PRF_OPEN: true
CSB_2022_CRF_OPEN: true
Expand Down Expand Up @@ -96,11 +96,11 @@ jobs:
run: echo "//pkg.form.io/:_authToken=${FORMIO_PKG_AUTH_TOKEN}" > .npmrc
working-directory: app/client

- name: Install front-end dependencies
- name: Install client app dependencies
run: npm install
working-directory: app/client

- name: Build front-end files and move to server
- name: Build client app and move files to server app
run: |
VITE_SERVER_BASE_PATH="$SERVER_BASE_PATH" \
VITE_CLOUD_SPACE="$CLOUD_SPACE" \
Expand All @@ -122,7 +122,7 @@ jobs:
cf auth "$CF_USER_DEV" "$CF_PASSWORD_DEV"
cf target -o "$CF_ORG" -s "$CF_SPACE"
- name: Set application-level variables
- name: Set application level variables
run: |
cf set-env $APP_NAME "CLOUD_SPACE" "$CLOUD_SPACE" > /dev/null
cf set-env $APP_NAME "SERVER_URL" "$SERVER_URL" > /dev/null
Expand Down Expand Up @@ -177,7 +177,7 @@ jobs:
run: aws s3api put-bucket-cors --bucket $S3_PUBLIC_BUCKET --cors-configuration file://s3CORS.json
working-directory: app/server/app/config

# Now that front-end is built in server/dist, only push server dir to Cloud.gov
# Now that client is built and included in server app, only push server app to Cloud.gov
- name: Deploy application to Cloud.gov
run: cf push $APP_NAME --strategy rolling -f ../manifest-dev.yml -p . -t 180
working-directory: app/server
4 changes: 2 additions & 2 deletions .github/workflows/production.yml
Original file line number Diff line number Diff line change
Expand Up @@ -45,7 +45,7 @@ jobs:
restore-keys: v1-npm-server-deps-

- name: Install server app dependencies
run: npm install
run: npm install --production
working-directory: app/server

- name: Cache client app node modules
Expand All @@ -63,7 +63,7 @@ jobs:
run: npm install
working-directory: app/client

- name: Build client app
- name: Build client app and move files to server app
run: |
VITE_SERVER_BASE_PATH="$SERVER_BASE_PATH" \
VITE_CLOUD_SPACE="$CLOUD_SPACE" \
Expand Down
10 changes: 5 additions & 5 deletions .github/workflows/staging.yml
Original file line number Diff line number Diff line change
Expand Up @@ -41,7 +41,7 @@ jobs:
SAML_PRIVATE_KEY: ${{ secrets.SAML_PRIVATE_KEY }}
JWT_PUBLIC_KEY: ${{ secrets.JWT_PUBLIC_KEY }}
JWT_PRIVATE_KEY: ${{ secrets.JWT_PRIVATE_KEY }}
CSB_REBATE_YEAR: 2023
CSB_REBATE_YEAR: 2024
CSB_2022_FRF_OPEN: true
CSB_2022_PRF_OPEN: true
CSB_2022_CRF_OPEN: true
Expand Down Expand Up @@ -96,11 +96,11 @@ jobs:
run: echo "//pkg.form.io/:_authToken=${FORMIO_PKG_AUTH_TOKEN}" > .npmrc
working-directory: app/client

- name: Install front-end dependencies
- name: Install client app dependencies
run: npm install
working-directory: app/client

- name: Build front-end files and move to server
- name: Build client app and move files to server app
run: |
VITE_SERVER_BASE_PATH="$SERVER_BASE_PATH" \
VITE_CLOUD_SPACE="$CLOUD_SPACE" \
Expand All @@ -122,7 +122,7 @@ jobs:
cf auth "$CF_USER_STAGING" "$CF_PASSWORD_STAGING"
cf target -o "$CF_ORG" -s "$CF_SPACE"
- name: Set application-level variables
- name: Set application level variables
run: |
cf set-env $APP_NAME "CLOUD_SPACE" "$CLOUD_SPACE" > /dev/null
cf set-env $APP_NAME "SERVER_URL" "$SERVER_URL" > /dev/null
Expand Down Expand Up @@ -177,7 +177,7 @@ jobs:
run: aws s3api put-bucket-cors --bucket $S3_PUBLIC_BUCKET --cors-configuration file://s3CORS.json
working-directory: app/server/app/config

# Now that front-end is built in server/dist, only push server dir to Cloud.gov
# Now that client is built and included in server app, only push server app to Cloud.gov
- name: Deploy application to Cloud.gov
run: cf push $APP_NAME --strategy rolling -f ../manifest-staging.yml -p . -t 180
working-directory: app/server
2 changes: 2 additions & 0 deletions app/.env.example
Original file line number Diff line number Diff line change
@@ -0,0 +1,2 @@
TEST_USERNAME=
TEST_PASSWORD=
6 changes: 6 additions & 0 deletions app/.gitignore
Original file line number Diff line number Diff line change
@@ -0,0 +1,6 @@
node_modules/
/test-results/
/playwright-report/
/blob-report/
/playwright/.cache/
/playwright/.auth/
Loading

0 comments on commit 38a0587

Please sign in to comment.