-
Notifications
You must be signed in to change notification settings - Fork 0
35 lines (33 loc) · 877 Bytes
/
main.yml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
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
if: always()
run: npm run lint:ts
- name: Build Storybook
if: always()
run: npm run storybook:build
- name: Screenshort testing
run: npm run test:ui
- name: Unit testing JEST
if: always()
run: npm run test:unit