Skip to content
This repository has been archived by the owner on Sep 30, 2024. It is now read-only.

fix(Menu): stopPropagation onEscape only if needed #635

fix(Menu): stopPropagation onEscape only if needed

fix(Menu): stopPropagation onEscape only if needed #635

Workflow file for this run

name: ci
on:
merge_group:
types: [checks_requested]
push:
branches:
- main
- develop
- bugfixes
pull_request:
branches:
- main
- develop
- bugfixes
concurrency:
group: ${{ github.workflow }}-${{ github.head_ref || github.ref }}
cancel-in-progress: true
jobs:
commit-lint:
runs-on: ubuntu-latest
steps:
- name: Checkout πŸ›Ž
uses: actions/checkout@v4
with:
fetch-depth: 0
- name: Setup pnpm
uses: pnpm/action-setup@v3
- name: Setup node env πŸ—
uses: actions/setup-node@v4
with:
cache: pnpm
node-version-file: .nvmrc
- name: Install dependencies πŸ‘¨πŸ»β€πŸ’»
run: pnpm install --frozen-lockfile
- name: Validate current commit (last commit) with commitlint
if: github.event_name == 'push'
run: pnpm exec commitlint --from HEAD~1 --to HEAD --verbose
- name: Validate PR commits with commitlint
if: github.event_name == 'pull_request'
run: pnpm exec commitlint --from ${{ github.event.pull_request.base.sha }} --to ${{ github.event.pull_request.head.sha }} --verbose
ci:
runs-on: ubuntu-latest
steps:
- name: Checkout πŸ›Ž
uses: actions/checkout@v4
- name: Setup pnpm
uses: pnpm/action-setup@v3
- name: Setup node env πŸ—
uses: actions/setup-node@v4
with:
cache: pnpm
node-version-file: .nvmrc
- name: Setup cypress cache
uses: actions/cache@v4
with:
path: |
~/.cache/Cypress
key: ${{ runner.os }}-cypress-cache-${{ hashFiles('**/pnpm-lock.yaml') }}
restore-keys: |
${{ runner.os }}-cypress-cache-
- name: Install dependencies πŸ‘¨πŸ»β€πŸ’»
run: pnpm install --frozen-lockfile
- name: Run linter πŸ‘€
run: pnpm run lint
- name: Build
run: pnpm run build:prod
- name: Build Storybook
run: pnpm run build:storybook
- name: Test
run: pnpm run coverage
- name: Install cypress binary
working-directory: example
run: pnpm exec cypress install
- name: Run cypress tests
uses: cypress-io/github-action@v6
with:
install: false
working-directory: example
build: pnpm run build:app
command: pnpm exec cypress run --e2e
start: pnpm run preview --host
browser: chrome
wait-on: http://127.0.0.1:4173
- name: Upload screenshots
uses: actions/upload-artifact@v4
if: failure()
with:
name: cypress-screenshots
path: example/cypress/screenshots
retention-days: 7
- name: Upload videos
uses: actions/upload-artifact@v4
if: always()
with:
name: cypress-videos
path: example/cypress/videos
retention-days: 7
- name: Upload coverage
uses: codecov/codecov-action@v4
with:
token: ${{ secrets.CODECOV_TOKEN }}