Skip to content

Commit

Permalink
add instrumented files for sake of Cypress Cloud
Browse files Browse the repository at this point in the history
  • Loading branch information
brettz9 committed Jul 16, 2024
1 parent e985f85 commit ba73d44
Show file tree
Hide file tree
Showing 68 changed files with 6,082 additions and 1 deletion.
59 changes: 59 additions & 0 deletions .github/workflows/main.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,59 @@
name: Cypress Tests

on: push

jobs:
install:
runs-on: ubuntu-22.04
steps:
- name: Checkout
uses: actions/checkout@v4

- name: Cypress install
uses: cypress-io/github-action@v6
with:
# Disable running of tests within install job
runTests: false
build: npm run instrument

- name: Save build folder
uses: actions/upload-artifact@v4
with:
name: build
if-no-files-found: error
path: dist

cypress-run:
runs-on: ubuntu-22.04
needs: install
strategy:
# don't fail the entire matrix on failure
fail-fast: false
matrix:
# run copies of the current job in parallel
containers: [1, 2, 3, 4, 5]
container:
image: cypress/browsers:node-20.14.0-chrome-126.0.6478.114-1-ff-127.0.1-edge-126.0.2592.61-1
options: --user 1001
steps:
- name: Checkout
uses: actions/checkout@v4

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

- name: Cypress run
uses: cypress-io/github-action@v6
with:
record: true
parallel: true
group: 'UI-Chrome'
start: npm start
browser: chrome
ci-build-id: '${{ github.sha }}-${{ github.workflow }}-${{ github.event_name }}'
env:
# pass the Cypress Cloud record key as an environment variable
CYPRESS_RECORD_KEY: ${{ secrets.CYPRESS_RECORD_KEY }}
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
2 changes: 1 addition & 1 deletion .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -4,5 +4,5 @@ proj.json
coverage
cypress/downloads
cypress/screenshots
instrumented
# instrumented # Disable for now for Cypress Cloud
dist
4 changes: 4 additions & 0 deletions instrumented/deepEqual.js

Large diffs are not rendered by default.

3,429 changes: 3,429 additions & 0 deletions instrumented/demo/index.js

Large diffs are not rendered by default.

117 changes: 117 additions & 0 deletions instrumented/formatAndTypeChoices.js

Large diffs are not rendered by default.

88 changes: 88 additions & 0 deletions instrumented/formats.js

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

Loading

0 comments on commit ba73d44

Please sign in to comment.