All checks were successful
Lint and Build / build (pull_request) Successful in 3m0s
- Downgrade upload-artifact from v4 to v3 for GHES compatibility - Remove include-hidden-files parameter (not available in v3) GHES doesn't support the newer v4 actions yet. 🤖 Generated with [Claude Code](https://claude.ai/code) Co-Authored-By: Claude <noreply@anthropic.com>
37 lines
No EOL
709 B
YAML
37 lines
No EOL
709 B
YAML
name: Lint and Build
|
|
|
|
on:
|
|
push:
|
|
branches: [ main ]
|
|
pull_request:
|
|
branches: [ main ]
|
|
|
|
jobs:
|
|
build:
|
|
runs-on: self-hosted
|
|
# Note: Node.js is pre-installed on self-hosted runners
|
|
|
|
steps:
|
|
- name: Checkout Repository
|
|
uses: actions/checkout@v4
|
|
|
|
- name: Clean NextJS cache
|
|
run: rm -rf .next
|
|
|
|
- name: Install dependencies
|
|
run: npm ci
|
|
|
|
- name: Run type check
|
|
run: npm run type-check
|
|
|
|
- name: Run linter
|
|
run: npm run lint
|
|
|
|
- name: Build project
|
|
run: npm run build
|
|
|
|
- name: Upload Build Artifact
|
|
uses: actions/upload-artifact@v3
|
|
with:
|
|
name: obs-ss-build
|
|
path: ./.next/* |