37 lines
999 B
YAML
37 lines
999 B
YAML
name: CI
|
|
|
|
on:
|
|
push:
|
|
branches: [main]
|
|
pull_request:
|
|
branches: [main]
|
|
|
|
jobs:
|
|
test:
|
|
runs-on: ubuntu-latest
|
|
steps:
|
|
- uses: actions/checkout@v4
|
|
|
|
- name: Setup Node.js
|
|
uses: actions/setup-node@v4
|
|
with:
|
|
node-version: 20
|
|
|
|
- name: Install Frontend Dependencies
|
|
run: cd frontend && npm ci
|
|
|
|
- name: Lint Frontend
|
|
run: cd frontend && npm run lint || echo "Linting not configured yet"
|
|
|
|
- name: Build Frontend
|
|
run: cd frontend && npm run build
|
|
|
|
- name: Validate Playlist Normalization
|
|
run: cd backend/playout && go run src/playlist.go playlist.txt || echo "Validation script not yet complete"
|
|
|
|
- name: Build Docker Images
|
|
run: docker compose build --no-cache
|
|
|
|
- name: Run Tests
|
|
run: echo "Tests will be added in future CI steps (per TODO.md)"
|