Skip to content

Merge branch 'main' into warren/bump-to-v190 #11

Merge branch 'main' into warren/bump-to-v190

Merge branch 'main' into warren/bump-to-v190 #11

name: Test Benchmark - cypress-cloud
on:
push:
jobs:
test:
runs-on: ubuntu-latest
if: "contains(toJSON(github.event.commits.*.message), '[benchmark]')"
strategy:
fail-fast: false
matrix:
# run in parallel
containers: [1, 2, 3, 4, 5]
steps:
- name: Checkout
uses: actions/checkout@v3
# populate commit message for merge commits
# see ://currents.dev/readme/ci-setup/github-actions
with:
ref: ${{ github.event.pull_request.head.sha }}
- uses: actions/setup-node@v3
with:
node-version: "16"
cache: "npm"
- name: Install dependencies
run: npm install
- name: Build
run: npm run build
- name: Link
working-directory: ./packages/cypress-cloud
run: npm link
- name: Run Cypress with cypress-cloud
working-directory: ./examples/webapp
env:
DEBUG: "currents:*"
FORCE_COLOR: 2 # for chalk tests
COMMIT_INFO_MESSAGE: "[cypress-cloud] ${{ github.event.head_commit.message }}"
run: |
npm link cypress-cloud
npx cypress-cloud run --record --parallel \
--spec "./cypress/e2e*/*.spec.js" \
--browser chrome --key ${{ secrets.CURRENTS_RECORD_KEY }} \ --ci-build-id "cloud-${{ github.repository }}-${{ github.run_id }}-${{ github.run_attempt}}" --tag cypress-cloud,gha