Skip to content

Commit 12292f9

Browse files
fix: security auditing
1 parent 3682d57 commit 12292f9

File tree

3 files changed

+583
-1041
lines changed

3 files changed

+583
-1041
lines changed

.github/workflows/main.yml

Lines changed: 53 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,53 @@
1+
name: Quality checks
2+
3+
on:
4+
push:
5+
branches:
6+
- main
7+
- feature/**
8+
- v2
9+
pull_request:
10+
branches:
11+
- main
12+
13+
jobs:
14+
quality_checks:
15+
name: Quality checks
16+
runs-on: ubuntu-latest
17+
strategy:
18+
fail-fast: false
19+
matrix:
20+
shard: [1]
21+
steps:
22+
- name: Checkout
23+
uses: actions/checkout@v4
24+
25+
- name: Cache
26+
uses: actions/cache@v4
27+
with:
28+
path: |
29+
~/.npm
30+
${{ github.workspace }}/dist/cache
31+
key: ${{ runner.os }}-nextjs-${{ hashFiles('**/package-lock.json') }}-${{ hashFiles('**/*.js', '**/*.jsx', '**/*.ts', '**/*.tsx') }}
32+
restore-keys: |
33+
${{ runner.os }}-nextjs-${{ hashFiles('**/package-lock.json') }}-
34+
35+
- name: Setup Node.js environment
36+
uses: actions/setup-node@v4
37+
with:
38+
node-version: 20
39+
40+
- name: Install
41+
run: npm ci
42+
43+
- name: Security Audit Checks
44+
run: npm run audit
45+
46+
- name: Static testing
47+
run: npm run lint
48+
49+
- name: Build Website
50+
run: npm run build
51+
52+
- name: Build Storybook
53+
run: npm run build-storybook

0 commit comments

Comments
 (0)