-
Notifications
You must be signed in to change notification settings - Fork 0
55 lines (46 loc) · 1.63 KB
/
Copy pathstatus-checks.yml
File metadata and controls
55 lines (46 loc) · 1.63 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
54
55
name: Branch Protection Status Checks
on:
pull_request:
branches: [ main ]
jobs:
required-checks:
name: Required Status Checks
runs-on: ubuntu-latest
steps:
- name: Checkout code
uses: actions/checkout@v4
- name: Setup Node.js
uses: actions/setup-node@v4
with:
node-version: '18'
cache: 'npm'
- name: Install dependencies
run: npm ci
- name: Test Suite (Required)
id: tests
run: |
echo "Running comprehensive test suite..."
npm test
echo "test_status=passed" >> $GITHUB_OUTPUT
- name: Validation (Required)
id: validation
run: |
echo "Running module validation..."
npm run validate
echo "validation_status=passed" >> $GITHUB_OUTPUT
- name: Build Check (Required)
id: build
run: |
echo "Verifying build process..."
npm run vite:build
echo "build_status=passed" >> $GITHUB_OUTPUT
- name: Status Summary
run: |
echo "## ✅ All Required Checks Passed" >> $GITHUB_STEP_SUMMARY
echo "" >> $GITHUB_STEP_SUMMARY
echo "### Test Results:" >> $GITHUB_STEP_SUMMARY
echo "- ✅ Tests: ${{ steps.tests.outputs.test_status }}" >> $GITHUB_STEP_SUMMARY
echo "- ✅ Validation: ${{ steps.validation.outputs.validation_status }}" >> $GITHUB_STEP_SUMMARY
echo "- ✅ Build: ${{ steps.build.outputs.build_status }}" >> $GITHUB_STEP_SUMMARY
echo "" >> $GITHUB_STEP_SUMMARY
echo "**This PR meets all quality requirements and can be merged safely.**" >> $GITHUB_STEP_SUMMARY