-
Notifications
You must be signed in to change notification settings - Fork 116
38 lines (32 loc) · 1.02 KB
/
web-integration.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
name: Web Integration Check
on: [push, pull_request]
jobs:
code_quality:
name: Web Integration Check
runs-on: ubuntu-latest
steps:
# Checkout the repository to access the code
- name: Checkout code
uses: actions/checkout@v4
# Set up Node.js environment
- name: Set up Node.js
uses: actions/setup-node@v4
with:
node-version: '20'
# Install project dependencies
- name: Install dependencies
run: npm install --prefix ./_dev
# Run Prettier check command
- name: Run Prettier check
run: |
npm run prettier --prefix ./_dev || {
echo "::error::Prettier check failed. Run 'npm run prettier:fix' to format your code."
exit 1
}
# Run Stylelint check command
- name: Run Stylelint check
run: |
npm run stylelint --prefix ./_dev || {
echo "::error::Stylelint check failed. Run 'npm run stylelint:fix' to autofix issues."
exit 1
}