Skip to content

Commit

Permalink
chore: fixing e2e tests
Browse files Browse the repository at this point in the history
  • Loading branch information
agoldis committed Mar 18, 2023
1 parent 892a56f commit 0df2695
Show file tree
Hide file tree
Showing 4 changed files with 21 additions and 11 deletions.
15 changes: 10 additions & 5 deletions .github/workflows/e2e-smoke-component.yml
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@ on:
push:

jobs:
e2e-smoke:
e2e-smoke-component:
if: "!contains(toJSON(github.event.commits.*.message), '[skip ci]')"
runs-on: ubuntu-latest
env:
Expand Down Expand Up @@ -38,8 +38,13 @@ jobs:
working-directory: ./examples/webapp
env:
CURRENTS_API_URL: http://localhost:1234
run: |
npx cypress-cloud run --record --parallel \
run: >
npx cypress-cloud run
--record
--parallel
--component
--browser chrome --key ${{ secrets.CURRENTS_RECORD_KEY }} \
--ci-build-id "smoke-component-${{ github.repository }}-${{ github.run_id }}-${{ github.run_attempt}}" --tag smoke,component
--key some-key
--browser chrome
--tag smoke,component
--spec "pages/__tests__/smoke**"
--ci-build-id "smoke-component-${{ github.repository }}-${{ github.run_id }}-${{ github.run_attempt}}"
14 changes: 9 additions & 5 deletions .github/workflows/e2e-smoke-linux.yml
Original file line number Diff line number Diff line change
Expand Up @@ -35,8 +35,12 @@ jobs:
working-directory: ./examples/webapp
env:
CURRENTS_API_URL: http://localhost:1234
run: |
npx cypress-cloud run --record --parallel \
--spec "./cypress/e2e_smoke/*.spec.js" \
--browser chrome --key ${{ secrets.CURRENTS_RECORD_KEY }} \
--ci-build-id "smoke-linux-${{ github.repository }}-${{ github.run_id }}-${{ github.run_attempt}}" --tag smoke,linux
run: >
npx cypress-cloud run
--record
--parallel
--key some-key
--browser chrome
--tag smoke,linux
--spec "./cypress/e2e_smoke/*.spec.js"
--ci-build-id "smoke-linux-${{ github.repository }}-${{ github.run_id }}-${{ github.run_attempt}}"
3 changes: 2 additions & 1 deletion .github/workflows/e2e-smoke-windows.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,7 @@ name: e2e-smoke-windows

on:
push:
branches: [main]

jobs:
build:
Expand Down Expand Up @@ -29,4 +30,4 @@ jobs:
- name: Run Cypress with cypress-cloud
working-directory: ./examples/webapp
run: |
npx cypress-cloud run --parallel --record --key ${{ secrets.CURRENTS_RECORD_KEY }} --ci-build-id "smoke-windows-${{ github.repository }}-${{ github.run_id }}-${{ github.run_attempt}}" --spec "cypress/e2e_smoke/*.spec.js" --tag smoke,windows
npx cypress-cloud run --parallel --record --key some-key --ci-build-id "smoke-windows-${{ github.repository }}-${{ github.run_id }}-${{ github.run_attempt}}" --spec "cypress/e2e_smoke/*.spec.js" --tag smoke,windows

0 comments on commit 0df2695

Please sign in to comment.