-
Notifications
You must be signed in to change notification settings - Fork 0
38 lines (35 loc) · 956 Bytes
/
linting.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
36
37
38
# This workflow will do a clean installation of node dependencies, cache/restore them, and run linting
name: Linting CI
on:
push:
branches: ['main']
pull_request:
branches: ['main']
jobs:
build:
name: Run linters and check build scripts
runs-on: ubuntu-latest
steps:
- name: Checkout repository
uses: actions/checkout@v3
- name: Use Node.js
uses: actions/setup-node@v3
with:
node-version: '16.x'
cache: 'npm'
- name: Install
run: npm install
- name: Run ESLint
run: npm run lint:js
- name: Run Stylelint
run: npm run lint:css
- name: Run Prettier
run: npm run prettier-check
- name: Build CSS
run: npm run build:css
- name: Build SCSS
run: npm run build:scss
- name: Build Tokens
run: npm run build:tokens
- name: Build Storybook
run: npm run build-storybook