add ui testing #117
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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 | |