Skip to content

blocks ux enhancements #2821

blocks ux enhancements

blocks ux enhancements #2821

Workflow file for this run

name: ci
on:
pull_request:
branches: [dev, beta, stable, master]
jobs:
run_tests:
runs-on: ubuntu-latest
steps:
- name: Clean
uses: rokroskar/[email protected]
env:
GITHUB_TOKEN: "${{ secrets.GITHUB_TOKEN }}"
if: "github.ref != 'refs/heads/master'"
- name: Checkout Repo
uses: actions/checkout@v4
- name: Auth with Gcloud
uses: google-github-actions/auth@v0
with:
credentials_json: ${{ secrets.GCP_DEV_SA_KEY }}
- name: Set up Gcloud SDK
uses: google-github-actions/setup-gcloud@v0
with:
project_id: zesty-dev
- name: Delete Old Screenshots
run: gsutil rm gs://cypress_screenshots/* || true
- name: Set up Node
uses: actions/[email protected]
with:
node-version: "16.5.0"
cache: "npm"
cache-dependency-path: package-lock.json
- name: Install Dependencies
run: npm install
- name: Install Chrome 131
run: |
sudo apt-get update
sudo apt-get install -y google-chrome-stable=131.0.*
shell: bash
- name: Verify Chrome Version
run: google-chrome --version
- name: Setup Testing Environment
run: npm run ci:test:setup
- name: Run Tests
run: npm run ci
env:
SENTRY_AUTH_TOKEN: ${{ secrets.SENTRY_AUTH_TOKEN }}
PATH: "/usr/bin:$PATH" # Ensures the correct Chrome binary is used
- name: Upload Screenshots
if: ${{ failure() }}
run: ./ci/scripts/upload_debug_screenshots_to_gcp.sh