-
Notifications
You must be signed in to change notification settings - Fork 3
53 lines (44 loc) · 1.13 KB
/
main.yml
File metadata and controls
53 lines (44 loc) · 1.13 KB
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
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
name: Quality checks
on:
push:
branches:
- main
- feature/**
- v2
pull_request:
branches:
- main
jobs:
quality_checks:
name: Quality checks
runs-on: ubuntu-latest
strategy:
fail-fast: false
matrix:
shard: [1]
steps:
- name: Checkout
uses: actions/checkout@v4
- name: Cache
uses: actions/cache@v4
with:
path: |
~/.npm
${{ github.workspace }}/dist/cache
key: ${{ runner.os }}-nextjs-${{ hashFiles('**/package-lock.json') }}-${{ hashFiles('**/*.js', '**/*.jsx', '**/*.ts', '**/*.tsx') }}
restore-keys: |
${{ runner.os }}-nextjs-${{ hashFiles('**/package-lock.json') }}-
- name: Setup Node.js environment
uses: actions/setup-node@v4
with:
node-version: 20
- name: Install
run: npm ci --force
- name: Security Audit Checks
run: npm run audit
- name: Static testing
run: npm run lint
- name: Build Website
run: npm run build
- name: Build Storybook
run: npm run build-storybook