Skip to content

SBVT-2308: Updating deps #232

SBVT-2308: Updating deps

SBVT-2308: Updating deps #232

Workflow file for this run

name: browser-type-check
#on: [push]
on: [pull_request]
jobs:
cypress-run:
runs-on: ubuntu-latest
strategy:
fail-fast: false
matrix:
browser: [ firefox, chrome, 'chrome:beta', edge ]
# browser: [ firefox, chrome, edge ] #chrome beta causing issues
steps:
- name: Checkout code
uses: actions/checkout@v4
- name: Extract Branch Name and Set Test Run Name
id: set-test-run-name
run: |
BRANCH_NAME=$(echo "${{ github.ref }}" | awk -F'/' '{print $3}')
echo "::set-output name=TEST_RUN_NAME::${{ matrix.browser }}-${{ github.workflow }}—$BRANCH_NAME"
- name: Install root dependencies
run: npm install
- name: Install test dependencies
run: npm install
working-directory: ./test
- name: Install Chrome Beta
if: ${{ startsWith(matrix.browser, 'chrome') }}
run: |
curl -sS -o - https://dl-ssl.google.com/linux/linux_signing_key.pub | sudo apt-key add -
echo "deb [arch=amd64] http://dl.google.com/linux/chrome/deb/ stable main" | sudo tee /etc/apt/sources.list.d/google-chrome-beta.list
sudo apt-get update
sudo apt-get install google-chrome-beta
- name: Cypress run
uses: cypress-io/github-action@v5
with:
quiet: true
working-directory: ./test
spec: cypress/e2e/test-spec/quick-test_*
browser: ${{ matrix.browser }}
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
PROJECT_TOKEN: ${{ secrets.DEV_EXAMPLE_7 }}
TEST_RUN_NAME: ${{ steps.set-test-run-name.outputs.TEST_RUN_NAME }}
DEBUG: TRUE