forked from yeatmanlab/roar-dashboard
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #34 from levante-framework/upstream-sync-2
Upstream sync 2
- Loading branch information
Showing
238 changed files
with
60,714 additions
and
18,456 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,4 +1,8 @@ | ||
# App Check Debug Tokens | ||
VITE_APPCHECK_DEBUG_TOKEN='your-app-check-debug-token' | ||
|
||
# Auth Session Timeout (Optional) | ||
# Control the session timeout limit and countdown duration before a user is signed out due to inactivity. | ||
VITE_AUTH_SESSION_TIMEOUT_IDLE_THRESHOLD=900000 # 15 minutes in milliseconds | ||
VITE_AUTH_SESSION_TIMEOUT_COUNTDOWN_DURATION=60000 # 1 minute in milliseconds | ||
VITE_AUTH_SESSION_TIMEOUT_IDLE_THRESHOLD=900000# 15 minutes in milliseconds | ||
VITE_AUTH_SESSION_TIMEOUT_COUNTDOWN_DURATION=60000# 1 minute in milliseconds | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,23 @@ | ||
# Cypress Environment Variables | ||
CLEVER_USERNAME='your-clever-username' | ||
CLEVER_PASSWORD='your-clever-password' | ||
SUPER_ADMIN_USERNAME='your-super-admin-username' | ||
SUPER_ADMIN_PASSWORD='your-super-admin-password' | ||
SUPER_ADMIN_ID='your-super-admin-id' | ||
PARTNER_ADMIN_USERNAME='your-partner-admin-username' | ||
PARTNER_ADMIN_PASSWORD='your-partner-admin-password' | ||
PARTNER_ADMIN_ID='your-partner-admin-id' | ||
PARTICIPANT_USERNAME='your-participant-username' | ||
PARTICIPANT_PASSWORD='your-participant-password' | ||
PARTICIPANT_UID='your-participant-uid' | ||
PARTICIPANT_EMAIL='your-participant-email' | ||
PARTICIPANT_EMAIL_PASSWORD='your-participant-email-password' | ||
|
||
# Parent information for testing | ||
PARENT_FIRST_NAME='your-parent-first-name' | ||
PARENT_LAST_NAME='your-parent-last-name' | ||
PARENT_EMAIL='your-parent-email' | ||
PARENT_PASSWORD='your-parent-password' | ||
|
||
# Firebase App Check Tokens | ||
VITE_APPCHECK_DEBUG_TOKEN='your-firebase-app-check-debug-token' |
Validating CODEOWNERS rules …
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,4 @@ | ||
# These owners will be the default owners for everything in the repo. Unless a | ||
# later match takes precedence, these owners will be requested for review when | ||
# someone opens a pull request. | ||
* @yeatmanlab/roar-maintainers |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,72 @@ | ||
name: Run Cypress Component Tests | ||
|
||
on: | ||
pull_request: | ||
types: [opened, reopened, synchronize] | ||
workflow_dispatch: | ||
inputs: | ||
pr_branch: | ||
description: 'Checkout this branch from the LEVANTE repository and execute CI/CD tests on it.' | ||
required: true | ||
|
||
concurrency: | ||
group: cypress-tests-${{ github.ref }}-3 | ||
cancel-in-progress: true | ||
|
||
jobs: | ||
cypress-run: | ||
name: Run Cypress Component Tests | ||
runs-on: ubuntu-latest | ||
timeout-minutes: 90 | ||
strategy: | ||
fail-fast: false | ||
matrix: | ||
browser: [chromium, edge] | ||
containers: [1, 2] | ||
env: | ||
NODE_OPTIONS: '--max_old_space_size=8192' | ||
NODE_ENV: 'test' | ||
CYPRESS_BASE_URL: 'http://localhost:5173' | ||
CYPRESS_RECORD_KEY: ${{ secrets.CYPRESS_RECORD_KEY }} | ||
COMMIT_INFO_MESSAGE: Component Tests for PR ${{ github.event.number }} "${{ github.event.pull_request.title }}" from commit "${{ github.event.pull_request.head.sha }}" | ||
COMMIT_INFO_SHA: ${{ github.event.pull_request.head.sha }} | ||
PARTNER_ADMIN_USERNAME: ${{ secrets.PARTNER_ADMIN_USERNAME }} | ||
PARTNER_ADMIN_PASSWORD: ${{ secrets.PARTNER_ADMIN_PASSWORD }} | ||
PARTNER_ADMIN_ID: ${{ secrets.PARTNER_ADMIN_ID }} | ||
PARTICIPANT_USERNAME: ${{ secrets.PARTICIPANT_USERNAME}} | ||
PARTICIPANT_PASSWORD: ${{ secrets.PARTICIPANT_PASSWORD }} | ||
PARTICIPANT_UID: ${{ secrets.PARTICIPANT_UID }} | ||
PARTICIPANT_EMAIL: ${{ secrets.PARTICIPANT_EMAIL }} | ||
PARTICIPANT_EMAIL_PASSWORD: ${{ secrets.PARTICIPANT_EMAIL_PASSWORD }} | ||
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} | ||
VITE_APPCHECK_DEBUG_TOKEN: ${{ secrets.VITE_APPCHECK_DEBUG_TOKEN }} | ||
steps: | ||
# For workflows triggered by pull requests | ||
- name: Checkout PR code | ||
if: github.event_name == 'pull_request' | ||
uses: actions/checkout@v4 | ||
with: | ||
ref: ${{ github.event.pull_request.head.ref }} | ||
|
||
# For workflows triggered manually, targeting the LEVANTE dashboard repository specifically | ||
- name: Checkout manual trigger code | ||
if: github.event_name == 'workflow_dispatch' | ||
uses: actions/checkout@v4 | ||
with: | ||
ref: ${{ github.event.inputs.pr_branch }} | ||
repository: levante-framework/levante-dashboard | ||
fetch-depth: 0 | ||
|
||
- name: Cypress run | ||
uses: cypress-io/github-action@v6 | ||
with: | ||
component: true | ||
browser: ${{ matrix.browser }} | ||
build: npm ci && npm run build | ||
start: npm run dev | ||
wait-on: ${{ env.CYPRESS_BASE_URL }} | ||
wait-on-timeout: 120 | ||
record: true | ||
parallel: true | ||
spec: 'cypress/component/**/*' | ||
ci-build-id: ${{ github.run_id }}-${{ matrix.browser }} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.