Skip to content

Release 1.0.6 - Detalles #184

Release 1.0.6 - Detalles

Release 1.0.6 - Detalles #184

Workflow file for this run

name: Frontend CI Pipeline
on:
push:
branches: [develop, main]
pull_request:
branches: [develop, main]
workflow_dispatch:
env:
NODE_VERSION: '22'
jobs:
quality-check:
name: Code Quality & Unit Tests
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- uses: pnpm/action-setup@v4
- uses: actions/setup-node@v4
with:
node-version: ${{ env.NODE_VERSION }}
cache: 'pnpm'
- name: Cache Playwright Browsers
uses: actions/cache@v4
id: playwright-cache
with:
path: |
~/.cache/ms-playwright
key: ${{ runner.os }}-playwright-${{ hashFiles('**/pnpm-lock.yaml') }}
- name: Install Dependencies
run: pnpm install --frozen-lockfile
- name: Install Playwright Browsers
if: steps.playwright-cache.outputs.cache-hit != 'true'
run: pnpm exec playwright install --with-deps
- name: Run ESLint
run: pnpm run lint
- name: Run TypeScript Check
run: pnpm run type-check
- name: Run Security Audit
run: pnpm run audit
- name: Run Unit Tests
run: pnpm run test:unit
e2e-tests:
name: E2E Tests (Cypress)
runs-on: ubuntu-latest
needs: quality-check
steps:
- uses: actions/checkout@v4
- uses: pnpm/action-setup@v4
- uses: actions/setup-node@v4
with:
node-version: ${{ env.NODE_VERSION }}
cache: 'pnpm'
- name: Cache Cypress Binary
uses: actions/cache@v4
id: cypress-cache
with:
path: ~/.cache/Cypress
key: ${{ runner.os }}-cypress-${{ hashFiles('**/pnpm-lock.yaml') }}
- name: Install Dependencies
run: pnpm install --frozen-lockfile
- name: Install Cypress Binary
if: steps.cypress-cache.outputs.cache-hit != 'true'
run: pnpm exec cypress install
- name: Cypress Run
uses: cypress-io/github-action@v6
with:
install: false
build: pnpm run build
start: pnpm run preview --port 5173
wait-on: 'http://localhost:5173'
browser: chrome
record: ${{ secrets.CYPRESS_RECORD_KEY != '' }}
parallel: false
env:
CI: true
CYPRESS_BASE_URL: 'http://localhost:5173'
CYPRESS_RECORD_KEY: ${{ secrets.CYPRESS_RECORD_KEY }}
GITHUB_TOKEN: ${{ secrets.DSW_TOKEN }}