chore: relaese 1.12.1 #482
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
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 alternative cypress binaries | |
run: CYPRESS_DOWNLOAD_MIRROR=https://cy-cdn.currents.dev npx [email protected] install --force | |
- 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 |