Skip to content

add ui testing

add ui testing #117

Workflow file for this run

name: Linting, testing, building pipeline
on:
push:
branches: [ main ]
pull_request:
branches: [ main ]
jobs:
webpack-pipeline:
runs-on: ubuntu-latest
strategy:
matrix:
node-version: [ 20.x ]
steps:
- uses: actions/checkout@v3
- name: Starting Node.js ${{ matrix.node-version }}
uses: actions/setup-node@v3
with:
node-version: ${{ matrix.node-version }}
- name: Install dependencies
run: npm i
- name: Production build
run: npm run build:prod
# - name: Linting TypeScript
# run: npm run lint:ts
- name: Screenshort testing
run: npm run test:ui
- name: Unit testing JEST
if: always()
run: npm run test:unit
- name: Build Storybook
if: always()
run: npm run storybook:build
vite-pipeline:
runs-on: ubuntu-latest
strategy:
matrix:
node-version: [ 20.x ]
steps:
- uses: actions/checkout@v3
- name: Starting Node.js ${{ matrix.node-version }}
uses: actions/setup-node@v3
with:
node-version: ${{ matrix.node-version }}
- name: Install dependencies
run: npm i
- name: Production build
run: npm run build:prod:vite
# - name: Linting TypeScript
# run: npm run lint:ts
- name: Unit testing JEST
if: always()
run: npm run test:unit
- name: Build Storybook
if: always()
run: npm run storybook:build