chore: update circleci orb to latest (#1398) #1581
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: Cypress Tests | |
on: | |
push: | |
branches-ignore: | |
- "renovate/**" | |
jobs: | |
install: | |
runs-on: ubuntu-latest | |
container: | |
image: cypress/browsers:node16.16.0-chrome105-ff104-edge | |
options: --user 1001 | |
steps: | |
- name: Checkout | |
uses: actions/checkout@v3 | |
- name: Cypress install | |
uses: cypress-io/github-action@v5 | |
with: | |
runTests: false | |
# report machine parameters | |
- run: yarn cypress info | |
- run: node --version | |
- run: node -p 'os.cpus()' | |
- run: yarn types | |
- run: yarn lint | |
- run: yarn test:unit:ci | |
- run: yarn build:ci | |
- name: Save build folder | |
uses: actions/upload-artifact@v3 | |
with: | |
name: build | |
if-no-files-found: error | |
path: build | |
install-windows: | |
runs-on: windows-2022 | |
steps: | |
- name: Checkout | |
uses: actions/checkout@v3 | |
- uses: actions/setup-node@v3 | |
with: | |
# The default install for the job is node 18+ | |
# which has some compatibility issues with openSSL inside this windows job. | |
# Node 18 updated with OpenSSL provider which causes this compatibility issue | |
# downgrading node to v16 to use the openssl-legacy-provider by default to prevent this issue | |
node-version: '16.16.0' | |
- name: Cypress install | |
uses: cypress-io/github-action@v5 | |
with: | |
runTests: false | |
# report machine parameters | |
- run: yarn cypress info | |
- run: node -p 'os.cpus()' | |
- run: yarn types | |
- run: yarn lint | |
- run: yarn test:unit:ci | |
- run: yarn build:ci | |
- name: Save build folder | |
uses: actions/upload-artifact@v3 | |
with: | |
name: build | |
if-no-files-found: error | |
path: build | |
ui-chrome-tests: | |
timeout-minutes: 15 | |
runs-on: ubuntu-latest | |
container: | |
image: cypress/browsers:node16.16.0-chrome105-ff104-edge | |
options: --user 1001 | |
needs: install | |
strategy: | |
# when one test fails, DO NOT cancel the other | |
# containers, because this will kill Cypress processes | |
# leaving Cypress Cloud hanging ... | |
# https://github.com/cypress-io/github-action/issues/48 | |
fail-fast: false | |
matrix: | |
# run copies of the current job in parallel | |
containers: [1, 2, 3, 4, 5] | |
steps: | |
- name: Checkout | |
uses: actions/checkout@v3 | |
- name: Download the build folders | |
uses: actions/download-artifact@v3 | |
with: | |
name: build | |
path: build | |
- name: Cypress info | |
run: npx cypress info | |
- name: Node info | |
run: node -v | |
- name: __e Dir | |
run: ls /__e | |
- name: "UI Tests - Chrome" | |
uses: cypress-io/github-action@v5 | |
with: | |
start: yarn start:ci | |
wait-on: "http://localhost:3000" | |
wait-on-timeout: 120 | |
browser: chrome | |
record: true | |
parallel: true | |
group: "UI - Chrome" | |
spec: cypress/tests/ui/* | |
config-file: cypress.config.js | |
env: | |
CYPRESS_PROJECT_ID: ${{ secrets.CYPRESS_PROJECT_ID }} | |
CYPRESS_RECORD_KEY: ${{ secrets.CYPRESS_RECORD_KEY }} | |
# Recommended: pass the GitHub token lets this action correctly | |
# determine the unique run id necessary to re-run the checks | |
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} | |
DEBUG: "cypress:server:args" | |
ui-chrome-mobile-tests: | |
timeout-minutes: 15 | |
runs-on: ubuntu-latest | |
container: | |
image: cypress/browsers:node16.16.0-chrome105-ff104-edge | |
options: --user 1001 | |
needs: install | |
strategy: | |
# when one test fails, DO NOT cancel the other | |
# containers, because this will kill Cypress processes | |
# leaving Cypress Cloud hanging ... | |
# https://github.com/cypress-io/github-action/issues/48 | |
fail-fast: false | |
matrix: | |
# run copies of the current job in parallel | |
containers: [1, 2, 3, 4, 5] | |
steps: | |
- name: Checkout | |
uses: actions/checkout@v3 | |
- name: Download the build folders | |
uses: actions/download-artifact@v3 | |
with: | |
name: build | |
path: build | |
- name: "UI Tests - Chrome - Mobile" | |
uses: cypress-io/github-action@v5 | |
with: | |
config: "viewportWidth=375,viewportHeight=667" | |
start: yarn start:ci | |
wait-on: "http://localhost:3000" | |
wait-on-timeout: 120 | |
browser: chrome | |
record: true | |
parallel: true | |
group: "UI - Chrome - Mobile" | |
spec: cypress/tests/ui/* | |
config-file: cypress.config.js | |
env: | |
CYPRESS_PROJECT_ID: ${{ secrets.CYPRESS_PROJECT_ID }} | |
CYPRESS_RECORD_KEY: ${{ secrets.CYPRESS_RECORD_KEY }} | |
# Recommended: pass the GitHub token lets this action correctly | |
# determine the unique run id necessary to re-run the checks | |
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} | |
ui-firefox-tests: | |
timeout-minutes: 15 | |
runs-on: ubuntu-latest | |
container: | |
image: cypress/browsers:node16.16.0-chrome105-ff104-edge | |
options: --user 1001 | |
needs: install | |
strategy: | |
# when one test fails, DO NOT cancel the other | |
# containers, because this will kill Cypress processes | |
# leaving Cypress Cloud hanging ... | |
# https://github.com/cypress-io/github-action/issues/48 | |
fail-fast: false | |
matrix: | |
# run copies of the current job in parallel | |
containers: [1, 2, 3, 4, 5] | |
steps: | |
- name: Checkout | |
uses: actions/checkout@v3 | |
- name: Download the build folders | |
uses: actions/download-artifact@v3 | |
with: | |
name: build | |
path: build | |
- name: "UI Tests - Firefox" | |
uses: cypress-io/github-action@v5 | |
with: | |
start: yarn start:ci | |
wait-on: "http://localhost:3000" | |
wait-on-timeout: 120 | |
browser: firefox | |
record: true | |
parallel: true | |
group: "UI - Firefox" | |
spec: cypress/tests/ui/* | |
config-file: cypress.config.js | |
env: | |
CYPRESS_PROJECT_ID: ${{ secrets.CYPRESS_PROJECT_ID }} | |
CYPRESS_RECORD_KEY: ${{ secrets.CYPRESS_RECORD_KEY }} | |
# Recommended: pass the GitHub token lets this action correctly | |
# determine the unique run id necessary to re-run the checks | |
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} | |
ui-firefox-mobile-tests: | |
timeout-minutes: 15 | |
runs-on: ubuntu-latest | |
container: | |
image: cypress/browsers:node16.16.0-chrome105-ff104-edge | |
options: --user 1001 | |
needs: install | |
strategy: | |
# when one test fails, DO NOT cancel the other | |
# containers, because this will kill Cypress processes | |
# leaving Cypress Cloud hanging ... | |
# https://github.com/cypress-io/github-action/issues/48 | |
fail-fast: false | |
matrix: | |
# run copies of the current job in parallel | |
containers: [1, 2, 3, 4, 5] | |
steps: | |
- name: Checkout | |
uses: actions/checkout@v3 | |
- name: Download the build folders | |
uses: actions/download-artifact@v3 | |
with: | |
name: build | |
path: build | |
- name: "UI Tests - Firefox - Mobile" | |
uses: cypress-io/github-action@v5 | |
with: | |
config: "viewportWidth=375,viewportHeight=667" | |
start: yarn start:ci | |
wait-on: "http://localhost:3000" | |
wait-on-timeout: 120 | |
browser: firefox | |
record: true | |
parallel: true | |
group: "UI - Firefox - Mobile" | |
spec: cypress/tests/ui/* | |
config-file: cypress.config.js | |
env: | |
CYPRESS_PROJECT_ID: ${{ secrets.CYPRESS_PROJECT_ID }} | |
CYPRESS_RECORD_KEY: ${{ secrets.CYPRESS_RECORD_KEY }} | |
# Recommended: pass the GitHub token lets this action correctly | |
# determine the unique run id necessary to re-run the checks | |
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} | |
ui-windows-tests: | |
timeout-minutes: 40 | |
runs-on: windows-2022 | |
needs: install-windows | |
strategy: | |
# when one test fails, DO NOT cancel the other | |
# containers, because this will kill Cypress processes | |
# leaving Cypress Cloud hanging ... | |
# https://github.com/cypress-io/github-action/issues/48 | |
fail-fast: false | |
matrix: | |
# run copies of the current job in parallel | |
containers: [1, 2, 3, 4, 5] | |
steps: | |
- name: Checkout | |
uses: actions/checkout@v3 | |
- uses: actions/setup-node@v3 | |
with: | |
node-version: '16.16.0' | |
- name: Download the build folders | |
uses: actions/download-artifact@v3 | |
with: | |
name: build | |
path: build | |
- name: "UI Tests - Electron - Windows" | |
uses: cypress-io/github-action@v5 | |
with: | |
start: yarn start:ci | |
wait-on: "http://localhost:3000" | |
wait-on-timeout: 120 | |
record: true | |
parallel: true | |
group: "UI - Electron - Windows" | |
spec: cypress/tests/ui/* | |
config-file: cypress.config.js | |
env: | |
CYPRESS_PROJECT_ID: ${{ secrets.CYPRESS_PROJECT_ID }} | |
CYPRESS_RECORD_KEY: ${{ secrets.CYPRESS_RECORD_KEY }} | |
# Recommended: pass the GitHub token lets this action correctly | |
# determine the unique run id necessary to re-run the checks | |
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} |