-
Notifications
You must be signed in to change notification settings - Fork 1
45 lines (35 loc) · 1.12 KB
/
check-website.yml
File metadata and controls
45 lines (35 loc) · 1.12 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
name: Check Website
on:
workflow_dispatch: # Manual triggering
pull_request:
jobs:
check-website:
name: Website Build Check
runs-on: ubuntu-latest
defaults:
run:
working-directory: website
steps:
- name: Checkout repository
uses: actions/checkout@v4
- name: Setup Node.js
uses: actions/setup-node@v4
with:
node-version: '20'
cache: 'npm'
cache-dependency-path: website/package-lock.json
- name: Install dependencies
run: npm ci
- name: Run linter
run: npm run lint
- name: Build website
run: npm run build
- name: Display summary
run: |
echo "### ✅ Website Check Summary" >> $GITHUB_STEP_SUMMARY
echo "" >> $GITHUB_STEP_SUMMARY
echo "| Step | Status |" >> $GITHUB_STEP_SUMMARY
echo "|------|--------|" >> $GITHUB_STEP_SUMMARY
echo "| Dependencies | ✅ Installed |" >> $GITHUB_STEP_SUMMARY
echo "| Linting | ✅ Passed |" >> $GITHUB_STEP_SUMMARY
echo "| Build | ✅ Successful |" >> $GITHUB_STEP_SUMMARY