72 lines
1.7 KiB
YAML
72 lines
1.7 KiB
YAML
name: CI
|
|
|
|
on:
|
|
push:
|
|
branches: [ main ]
|
|
pull_request:
|
|
branches: [ main ]
|
|
|
|
jobs:
|
|
lint:
|
|
name: Linting (Biome)
|
|
runs-on: ubuntu-latest
|
|
steps:
|
|
- uses: actions/checkout@v4
|
|
- name: Setup Biome
|
|
uses: biomejs/setup-biome@v2
|
|
with:
|
|
version: 2.3.12
|
|
- name: Run Biome
|
|
run: biome ci .
|
|
|
|
test-orchestrator:
|
|
name: Orchestrator Tests
|
|
runs-on: ubuntu-latest
|
|
steps:
|
|
- uses: actions/checkout@v4
|
|
- name: Setup Node
|
|
uses: actions/setup-node@v4
|
|
with:
|
|
node-version: 20
|
|
cache: 'npm'
|
|
cache-dependency-path: orchestrator/package-lock.json
|
|
- name: Install dependencies
|
|
run: npm ci
|
|
working-directory: orchestrator
|
|
- name: Run Vitest
|
|
run: npm run test:run
|
|
working-directory: orchestrator
|
|
|
|
build:
|
|
name: Build Verification
|
|
runs-on: ubuntu-latest
|
|
steps:
|
|
- uses: actions/checkout@v4
|
|
- name: Setup Node
|
|
uses: actions/setup-node@v4
|
|
with:
|
|
node-version: 20
|
|
cache: 'npm'
|
|
cache-dependency-path: |
|
|
orchestrator/package-lock.json
|
|
extractors/gradcracker/package-lock.json
|
|
extractors/ukvisajobs/package-lock.json
|
|
|
|
- name: Build Orchestrator
|
|
run: |
|
|
npm ci
|
|
npm run build
|
|
working-directory: orchestrator
|
|
|
|
- name: Build gradcracker extractor
|
|
run: |
|
|
npm ci
|
|
npm run build
|
|
working-directory: extractors/gradcracker
|
|
|
|
- name: Build ukvisajobs extractor
|
|
run: |
|
|
npm ci
|
|
npm run build
|
|
working-directory: extractors/ukvisajobs
|