Skip to content

Commit

Permalink
Merge pull request #107 from replayio-public/feature/PRO-697-reapply-…
Browse files Browse the repository at this point in the history
…replay-setup

[DRAFT] Set up Replay again
  • Loading branch information
markerikson authored Jun 24, 2024
2 parents 98ac098 + 2674cad commit e66e4da
Show file tree
Hide file tree
Showing 4 changed files with 163 additions and 162 deletions.
24 changes: 12 additions & 12 deletions .github/workflows/add_issue_to_triage_board.yml
Original file line number Diff line number Diff line change
@@ -1,12 +1,12 @@
name: 'Add issue/PR to Triage Board'
on:
issues:
types:
- opened
pull_request_target:
types:
- opened
jobs:
add-to-triage-project-board:
uses: cypress-io/cypress/.github/workflows/triage_add_to_project.yml@develop
secrets: inherit
# name: 'Add issue/PR to Triage Board'
# on:
# issues:
# types:
# - opened
# pull_request_target:
# types:
# - opened
# jobs:
# add-to-triage-project-board:
# uses: cypress-io/cypress/.github/workflows/triage_add_to_project.yml@develop
# secrets: inherit
282 changes: 141 additions & 141 deletions .github/workflows/main.yml
Original file line number Diff line number Diff line change
Expand Up @@ -75,152 +75,152 @@ jobs:
wait-on: "http://localhost:3000"
wait-on-timeout: 120
browser: chrome
record: true
parallel: true
group: "UI - Chrome"
#record: true
# parallel: true
# group: "UI - Chrome"
spec: cypress/tests/ui/*
config-file: cypress.config.ts
env:
CYPRESS_PROJECT_ID: ${{ secrets.CYPRESS_PROJECT_ID }}
CYPRESS_RECORD_KEY: ${{ secrets.CYPRESS_RECORD_KEY }}
# CYPRESS_PROJECT_ID: ${{ secrets.CYPRESS_PROJECT_ID }}
# CYPRESS_RECORD_KEY: ${{ secrets.CYPRESS_RECORD_KEY }}
# Recommended: pass the GitHub token lets this action correctly
# determine the unique run id necessary to re-run the checks
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
DEBUG: "cypress:server:args"

ui-chrome-mobile-tests:
timeout-minutes: 15
runs-on: ubuntu-latest
container:
image: cypress/browsers:node-20.12.0-chrome-123.0.6312.86-1-ff-124.0.2-edge-123.0.2420.65-1
options: --user 1001
needs: install
strategy:
# when one test fails, DO NOT cancel the other
# containers, because this will kill Cypress processes
# leaving Cypress Cloud hanging ...
# https://github.com/cypress-io/github-action/issues/48
fail-fast: false
matrix:
# run copies of the current job in parallel
containers: [1, 2, 3, 4, 5]
steps:
- name: Checkout
uses: actions/checkout@v4

- name: Download the build folders
uses: actions/download-artifact@v4
with:
name: build
path: build

- name: "UI Tests - Chrome - Mobile"
uses: cypress-io/github-action@v6
with:
config: '{"e2e":{"viewportWidth":375,"viewportHeight":667}}'
start: yarn start:ci
wait-on: "http://localhost:3000"
wait-on-timeout: 120
browser: chrome
record: true
parallel: true
group: "UI - Chrome - Mobile"
spec: cypress/tests/ui/*
config-file: cypress.config.ts
env:
CYPRESS_PROJECT_ID: ${{ secrets.CYPRESS_PROJECT_ID }}
CYPRESS_RECORD_KEY: ${{ secrets.CYPRESS_RECORD_KEY }}
# Recommended: pass the GitHub token lets this action correctly
# determine the unique run id necessary to re-run the checks
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}

ui-firefox-tests:
timeout-minutes: 15
runs-on: ubuntu-latest
container:
image: cypress/browsers:node-20.12.0-chrome-123.0.6312.86-1-ff-124.0.2-edge-123.0.2420.65-1
options: --user 1001
needs: install
strategy:
# when one test fails, DO NOT cancel the other
# containers, because this will kill Cypress processes
# leaving Cypress Cloud hanging ...
# https://github.com/cypress-io/github-action/issues/48
fail-fast: false
matrix:
# run copies of the current job in parallel
containers: [1, 2, 3, 4, 5]
steps:
- name: Checkout
uses: actions/checkout@v4

- name: Download the build folders
uses: actions/download-artifact@v4
with:
name: build
path: build

- name: "UI Tests - Firefox"
uses: cypress-io/github-action@v6
with:
start: yarn start:ci
wait-on: "http://localhost:3000"
wait-on-timeout: 120
browser: firefox
record: true
parallel: true
group: "UI - Firefox"
spec: cypress/tests/ui/*
config-file: cypress.config.ts
env:
CYPRESS_PROJECT_ID: ${{ secrets.CYPRESS_PROJECT_ID }}
CYPRESS_RECORD_KEY: ${{ secrets.CYPRESS_RECORD_KEY }}
# Recommended: pass the GitHub token lets this action correctly
# determine the unique run id necessary to re-run the checks
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}

ui-firefox-mobile-tests:
timeout-minutes: 15
runs-on: ubuntu-latest
container:
image: cypress/browsers:node-20.12.0-chrome-123.0.6312.86-1-ff-124.0.2-edge-123.0.2420.65-1
options: --user 1001
needs: install
strategy:
# when one test fails, DO NOT cancel the other
# containers, because this will kill Cypress processes
# leaving Cypress Cloud hanging ...
# https://github.com/cypress-io/github-action/issues/48
fail-fast: false
matrix:
# run copies of the current job in parallel
containers: [1, 2, 3, 4, 5]
steps:
- name: Checkout
uses: actions/checkout@v4

- name: Download the build folders
uses: actions/download-artifact@v4
with:
name: build
path: build

- name: "UI Tests - Firefox - Mobile"
uses: cypress-io/github-action@v6
with:
config: '{"e2e":{"viewportWidth":375,"viewportHeight":667}}'
start: yarn start:ci
wait-on: "http://localhost:3000"
wait-on-timeout: 120
browser: firefox
record: true
parallel: true
group: "UI - Firefox - Mobile"
spec: cypress/tests/ui/*
config-file: cypress.config.ts
env:
CYPRESS_PROJECT_ID: ${{ secrets.CYPRESS_PROJECT_ID }}
CYPRESS_RECORD_KEY: ${{ secrets.CYPRESS_RECORD_KEY }}
# Recommended: pass the GitHub token lets this action correctly
# determine the unique run id necessary to re-run the checks
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
# ui-chrome-mobile-tests:
# timeout-minutes: 15
# runs-on: ubuntu-latest
# container:
# image: cypress/browsers:node-20.12.0-chrome-123.0.6312.86-1-ff-124.0.2-edge-123.0.2420.65-1
# options: --user 1001
# needs: install
# strategy:
# # when one test fails, DO NOT cancel the other
# # containers, because this will kill Cypress processes
# # leaving Cypress Cloud hanging ...
# # https://github.com/cypress-io/github-action/issues/48
# fail-fast: false
# matrix:
# # run copies of the current job in parallel
# containers: [1, 2, 3, 4, 5]
# steps:
# - name: Checkout
# uses: actions/checkout@v4

# - name: Download the build folders
# uses: actions/download-artifact@v4
# with:
# name: build
# path: build

# - name: "UI Tests - Chrome - Mobile"
# uses: cypress-io/github-action@v6
# with:
# config: '{"e2e":{"viewportWidth":375,"viewportHeight":667}}'
# start: yarn start:ci
# wait-on: "http://localhost:3000"
# wait-on-timeout: 120
# browser: chrome
# record: true
# parallel: true
# group: "UI - Chrome - Mobile"
# spec: cypress/tests/ui/*
# config-file: cypress.config.ts
# env:
# CYPRESS_PROJECT_ID: ${{ secrets.CYPRESS_PROJECT_ID }}
# CYPRESS_RECORD_KEY: ${{ secrets.CYPRESS_RECORD_KEY }}
# # Recommended: pass the GitHub token lets this action correctly
# # determine the unique run id necessary to re-run the checks
# GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}

# ui-firefox-tests:
# timeout-minutes: 15
# runs-on: ubuntu-latest
# container:
# image: cypress/browsers:node-20.12.0-chrome-123.0.6312.86-1-ff-124.0.2-edge-123.0.2420.65-1
# options: --user 1001
# needs: install
# strategy:
# # when one test fails, DO NOT cancel the other
# # containers, because this will kill Cypress processes
# # leaving Cypress Cloud hanging ...
# # https://github.com/cypress-io/github-action/issues/48
# fail-fast: false
# matrix:
# # run copies of the current job in parallel
# containers: [1, 2, 3, 4, 5]
# steps:
# - name: Checkout
# uses: actions/checkout@v4

# - name: Download the build folders
# uses: actions/download-artifact@v4
# with:
# name: build
# path: build

# - name: "UI Tests - Firefox"
# uses: cypress-io/github-action@v6
# with:
# start: yarn start:ci
# wait-on: "http://localhost:3000"
# wait-on-timeout: 120
# browser: firefox
# record: true
# parallel: true
# group: "UI - Firefox"
# spec: cypress/tests/ui/*
# config-file: cypress.config.ts
# env:
# CYPRESS_PROJECT_ID: ${{ secrets.CYPRESS_PROJECT_ID }}
# CYPRESS_RECORD_KEY: ${{ secrets.CYPRESS_RECORD_KEY }}
# # Recommended: pass the GitHub token lets this action correctly
# # determine the unique run id necessary to re-run the checks
# GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}

# ui-firefox-mobile-tests:
# timeout-minutes: 15
# runs-on: ubuntu-latest
# container:
# image: cypress/browsers:node-20.12.0-chrome-123.0.6312.86-1-ff-124.0.2-edge-123.0.2420.65-1
# options: --user 1001
# needs: install
# strategy:
# # when one test fails, DO NOT cancel the other
# # containers, because this will kill Cypress processes
# # leaving Cypress Cloud hanging ...
# # https://github.com/cypress-io/github-action/issues/48
# fail-fast: false
# matrix:
# # run copies of the current job in parallel
# containers: [1, 2, 3, 4, 5]
# steps:
# - name: Checkout
# uses: actions/checkout@v4

# - name: Download the build folders
# uses: actions/download-artifact@v4
# with:
# name: build
# path: build

# - name: "UI Tests - Firefox - Mobile"
# uses: cypress-io/github-action@v6
# with:
# config: '{"e2e":{"viewportWidth":375,"viewportHeight":667}}'
# start: yarn start:ci
# wait-on: "http://localhost:3000"
# wait-on-timeout: 120
# browser: firefox
# record: true
# parallel: true
# group: "UI - Firefox - Mobile"
# spec: cypress/tests/ui/*
# config-file: cypress.config.ts
# env:
# CYPRESS_PROJECT_ID: ${{ secrets.CYPRESS_PROJECT_ID }}
# CYPRESS_RECORD_KEY: ${{ secrets.CYPRESS_RECORD_KEY }}
# # Recommended: pass the GitHub token lets this action correctly
# # determine the unique run id necessary to re-run the checks
# GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
18 changes: 9 additions & 9 deletions .github/workflows/triage_new_comment_workflow.yml
Original file line number Diff line number Diff line change
@@ -1,9 +1,9 @@
name: 'Handle Comment Workflow'
on:
issue_comment:
types:
- created
jobs:
closed-issue-comment:
uses: cypress-io/cypress/.github/workflows/triage_handle_new_comments.yml@develop
secrets: inherit
# name: 'Handle Comment Workflow'
# on:
# issue_comment:
# types:
# - created
# jobs:
# closed-issue-comment:
# uses: cypress-io/cypress/.github/workflows/triage_handle_new_comments.yml@develop
# secrets: inherit
1 change: 1 addition & 0 deletions backend/helpers.ts
Original file line number Diff line number Diff line change
Expand Up @@ -80,6 +80,7 @@ export const verifyOktaToken = (req: Request, res: Response, next: NextFunction)

// Amazon Cognito Validate the JWT Signature
// https://docs.aws.amazon.com/cognito/latest/developerguide/amazon-cognito-user-pools-using-tokens-verifying-a-jwt.html#amazon-cognito-user-pools-using-tokens-step-2
// @ts-ignore
const userPoolId = awsConfig.Auth.Cognito.userPoolId;
const region = userPoolId.split("_")[0];
const awsCognitoJwtConfig = {
Expand Down

0 comments on commit e66e4da

Please sign in to comment.