Skip to content

Commit 5302534

Browse files
author
aehnh
committed
remove comments
1 parent b9c97fb commit 5302534

File tree

1 file changed

+0
-193
lines changed

1 file changed

+0
-193
lines changed

.github/workflows/deploy-playgrounds.yml

Lines changed: 0 additions & 193 deletions
Original file line numberDiff line numberDiff line change
@@ -100,196 +100,3 @@ jobs:
100100
env:
101101
VERCEL_PROJECT_ID: ${{ secrets.VERCEL_PROJECT_ID_WEB_JS_SCRIPT_PLAYGROUND }}
102102

103-
# test:
104-
# needs: deploy
105-
# timeout-minutes: 60
106-
# runs-on: ubuntu-latest
107-
#
108-
# steps:
109-
# - name: Checkout code
110-
# uses: actions/checkout@v4
111-
#
112-
# - name: Set up Node.js
113-
# uses: actions/setup-node@v4
114-
#
115-
# - name: Cache node modules
116-
# id: cache-npm
117-
# uses: actions/cache@v3
118-
# env:
119-
# cache-name: cache-node-modules
120-
# with:
121-
# path: |
122-
# ~/.npm
123-
# ./node_modules
124-
# key: ${{ runner.os }}-build-${{ env.cache-name }}-${{ hashFiles('**/package-lock.json') }}-force-1
125-
# restore-keys: |
126-
# ${{ runner.os }}-build-${{ env.cache-name }}-
127-
# ${{ runner.os }}-build-
128-
# ${{ runner.os }}-
129-
#
130-
# - if: ${{ steps.cache-npm.outputs.cache-hit != 'true' }}
131-
# name: Install root dependencies
132-
# run: |
133-
# npm i
134-
# npm install lerna
135-
# npm install vercel@33.2.0
136-
# npm list
137-
#
138-
# - name: Build SDKs
139-
# run: |
140-
# npm run build
141-
# npm run build:bundler:local
142-
#
143-
# - name: Get installed Playwright version
144-
# id: playwright-version
145-
# run: echo "::set-output name=version::$(yarn why --json @playwright/test | grep -h 'workspace:.' | jq --raw-output '.children[].locator' | sed -e 's/@playwright\/test@.*://')"
146-
#
147-
# - if: ${{ steps.cache-npm.outputs.cache-hit != 'true' }}
148-
# name: List the state of node modules
149-
# continue-on-error: true
150-
# run: |
151-
# cd packages/tests-e2e
152-
# npm list
153-
#
154-
# - name: Install dependencies
155-
# run: |
156-
# cd packages/tests-e2e
157-
# npm install
158-
# sudo apt-get update
159-
# sudo apt-get install -y libxml2-utils
160-
#
161-
# - uses: actions/cache@v3
162-
# id: playwright-cache
163-
# with:
164-
# path: '~/.cache/ms-playwright'
165-
# key: '${{ runner.os }}-playwright-${{ steps.playwright-version.outputs.version }}'
166-
# restore-keys: |
167-
# ${{ runner.os }}-playwright-
168-
#
169-
# - name: Install Playwright's dependencies
170-
# if: steps.playwright-cache.outputs.cache-hit != 'true'
171-
# run: |
172-
# cd packages/tests-e2e
173-
# npx playwright install --with-deps
174-
#
175-
# - name: Create a log stream on AWS CloudWatch
176-
# env:
177-
# AWS_ACCESS_KEY_ID: ${{ secrets.AWS_ACCESS_KEY_ID }}
178-
# AWS_SECRET_ACCESS_KEY: ${{ secrets.AWS_SECRET_ACCESS_KEY }}
179-
# AWS_REGION: ${{ secrets.AWS_REGION }}
180-
# run: |
181-
# TIMESTAMP=$(date +%s000)
182-
# echo "LOG_STREAM_NAME=javascript-$TIMESTAMP" >> $GITHUB_ENV
183-
# aws logs create-log-stream --log-group-name "test-results-board" --log-stream-name "javascript-$TIMESTAMP"
184-
#
185-
# - name: Run Complete tests for react
186-
# run: |
187-
# cd packages/tests-e2e
188-
# set +e
189-
# npx playwright test --config=playwright.config.complete.ts
190-
# EXIT_CODE=$?
191-
# if [ $EXIT_CODE -ne 0 ]; then
192-
# echo "COMPLETE_REACT_FAILED=true" >> $GITHUB_ENV
193-
# fi
194-
# env:
195-
# PLAYWRIGHT_NUM_CORES: 4
196-
# PLAYWRIGHT_JWT_TOKEN: ${{ secrets.PLAYWRIGHT_JWT_TOKEN }}
197-
# PLAYWRIGHT_GOOGLE_EMAIL: ${{ secrets.PLAYWRIGHT_GOOGLE_EMAIL }}
198-
# PLAYWRIGHT_GOOGLE_PASSWORD: ${{ secrets.PLAYWRIGHT_GOOGLE_PASSWORD }}
199-
# PLAYWRIGHT_GOOGLE_TOTP_SECRET: ${{ secrets.PLAYWRIGHT_GOOGLE_TOTP_SECRET }}
200-
# GITHUB_RUN_ID: ${{ github.run_id }}
201-
# SLACK_BOT_USER_OAUTH_TOKEN: ${{ secrets.SLACK_BOT_USER_OAUTH_TOKEN }}
202-
# GITHUB_BRANCH_NAME: ${{ github.ref_name }}
203-
# continue-on-error: true
204-
#
205-
# - uses: actions/upload-artifact@v4
206-
# with:
207-
# name: playwright-report-complete-react
208-
# path: packages/tests-e2e/playwright-report/
209-
# retention-days: 30
210-
#
211-
# - name: Send logs to AWS CloudWatch
212-
# env:
213-
# AWS_ACCESS_KEY_ID: ${{ secrets.AWS_ACCESS_KEY_ID }}
214-
# AWS_SECRET_ACCESS_KEY: ${{ secrets.AWS_SECRET_ACCESS_KEY }}
215-
# AWS_REGION: ${{ secrets.AWS_REGION }}
216-
# run: |
217-
# cd packages/tests-e2e
218-
# TESTS=$(xmllint --xpath 'string(/testsuites/@tests)' test-results/results.xml)
219-
# FAILURES=$(xmllint --xpath 'string(/testsuites/@failures)' test-results/results.xml)
220-
# SKIPPED=$(xmllint --xpath 'string(/testsuites/@skipped)' test-results/results.xml)
221-
# ERRORS=$(xmllint --xpath 'string(/testsuites/@errors)' test-results/results.xml)
222-
# TIME=$(xmllint --xpath 'string(/testsuites/@time)' test-results/results.xml)
223-
# PASSED=$((TESTS - FAILURES - ERRORS - SKIPPED))
224-
# FAILED=$((FAILURES + ERRORS))
225-
# TIMESTAMP=$(date +%s000)
226-
# LOG_EVENT_JSON="[{\"timestamp\":$TIMESTAMP,\"message\":\"{\\\"application\\\":\\\"complete\\\",\\\"platform\\\":\\\"react\\\",\\\"run_type\\\":\\\"commitly\\\",\\\"execution_time\\\":$TIME,\\\"passed\\\":$PASSED,\\\"failed\\\":$FAILED,\\\"link\\\":\\\"https://github.com/corbado/javascript/actions/runs/${GITHUB_RUN_ID}\\\"}\"}]"
227-
# aws logs put-log-events --log-group-name "test-results-board" --log-stream-name "$LOG_STREAM_NAME" --log-events "$LOG_EVENT_JSON"
228-
#
229-
# - name: Run Connect tests for react
230-
# run: |
231-
# cd packages/tests-e2e
232-
# BRANCH_NAME=$(echo $BRANCH_NAME_RAW | tr '/_' '-')
233-
# export PLAYWRIGHT_TEST_URL="https://$BRANCH_NAME.connect-next.playground.corbado.io"
234-
# set +e
235-
# npx playwright test --config=playwright.config.connect.ts
236-
# EXIT_CODE=$?
237-
# if [ $EXIT_CODE -ne 0 ]; then
238-
# echo "CONNECT_REACT_FAILED=true" >> $GITHUB_ENV
239-
# fi
240-
# env:
241-
# PLAYWRIGHT_NUM_CORES: 4
242-
# BACKEND_API_BASIC_AUTH: ${{ secrets.BACKEND_API_BASIC_AUTH }}
243-
# PLAYWRIGHT_CONNECT_PROJECT_ID: ${{ secrets.PLAYWRIGHT_CONNECT_PROJECT_ID }}
244-
# PLAYWRIGHT_NGROK_AUTH_TOKEN: ${{ secrets.PLAYWRIGHT_NGROK_AUTH_TOKEN }}
245-
# GITHUB_RUN_ID: ${{ github.run_id }}
246-
# SLACK_BOT_USER_OAUTH_TOKEN: ${{ secrets.SLACK_BOT_USER_OAUTH_TOKEN }}
247-
# GITHUB_BRANCH_NAME: ${{ env.BRANCH_NAME_RAW }}
248-
# continue-on-error: true
249-
#
250-
# - uses: actions/upload-artifact@v4
251-
# with:
252-
# name: playwright-report-connect-react
253-
# path: packages/tests-e2e/playwright-report/
254-
# retention-days: 30
255-
#
256-
# - name: Send logs to AWS CloudWatch
257-
# env:
258-
# AWS_ACCESS_KEY_ID: ${{ secrets.AWS_ACCESS_KEY_ID }}
259-
# AWS_SECRET_ACCESS_KEY: ${{ secrets.AWS_SECRET_ACCESS_KEY }}
260-
# AWS_REGION: ${{ secrets.AWS_REGION }}
261-
# run: |
262-
# cd packages/tests-e2e
263-
# TESTS=$(xmllint --xpath 'string(/testsuites/@tests)' test-results/results.xml)
264-
# FAILURES=$(xmllint --xpath 'string(/testsuites/@failures)' test-results/results.xml)
265-
# SKIPPED=$(xmllint --xpath 'string(/testsuites/@skipped)' test-results/results.xml)
266-
# ERRORS=$(xmllint --xpath 'string(/testsuites/@errors)' test-results/results.xml)
267-
# TIME=$(xmllint --xpath 'string(/testsuites/@time)' test-results/results.xml)
268-
# PASSED=$((TESTS - FAILURES - ERRORS - SKIPPED))
269-
# FAILED=$((FAILURES + ERRORS))
270-
# TIMESTAMP=$(date +%s000)
271-
# LOG_EVENT_JSON="[{\"timestamp\":$TIMESTAMP,\"message\":\"{\\\"application\\\":\\\"connect\\\",\\\"platform\\\":\\\"react\\\",\\\"run_type\\\":\\\"commitly\\\",\\\"execution_time\\\":$TIME,\\\"passed\\\":$PASSED,\\\"failed\\\":$FAILED,\\\"link\\\":\\\"https://github.com/corbado/javascript/actions/runs/${GITHUB_RUN_ID}\\\"}\"}]"
272-
# aws logs put-log-events --log-group-name "test-results-board" --log-stream-name "$LOG_STREAM_NAME" --log-events "$LOG_EVENT_JSON"
273-
#
274-
# - name: Aggregate results
275-
# run: |
276-
# FAILED_STEPS=""
277-
# if [ "${COMPLETE_REACT_FAILED}" = "true" ]; then
278-
# FAILED_STEPS="${FAILED_STEPS} Complete-React"
279-
# fi
280-
# if [ "${COMPLETE_WEBJS_FAILED}" = "true" ]; then
281-
# FAILED_STEPS="${FAILED_STEPS} Complete-WebJs"
282-
# fi
283-
# if [ "${COMPLETE_WEBJSSCRIPT_FAILED}" = "true" ]; then
284-
# FAILED_STEPS="${FAILED_STEPS} Complete-WebJsScript"
285-
# fi
286-
# if [ "${CONNECT_REACT_FAILED}" = "true" ]; then
287-
# FAILED_STEPS="${FAILED_STEPS} Connect-React"
288-
# fi
289-
#
290-
# if [ -n "$FAILED_STEPS" ]; then
291-
# echo "The following test steps have failed: $FAILED_STEPS"
292-
# exit 1
293-
# else
294-
# echo "All tests passed."
295-
# fi

0 commit comments

Comments
 (0)