Skip to content

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

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

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

Workflow file for this run

name: Test Benchmark - @currents/cli
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: Run Cypress with @currents/cli
working-directory: ./examples/webapp
env:
FORCE_COLOR: 2 # for chalk tests
COMMIT_INFO_MESSAGE: "[@currents/cli] ${{ github.event.head_commit.message }}"
run: |
npm install @currents/cli
npx currents run --record --parallel \
--spec "./cypress/e2e*/*.spec.js" \
--browser chrome --key ${{ secrets.CURRENTS_RECORD_KEY }} \ --ci-build-id "cy-${{ github.repository }}-${{ github.run_id }}-${{ github.run_attempt}}" --tag currents-cli,gha