add CI
This commit is contained in:
parent
d4e83c0674
commit
aaab9b5124
71
.github/workflows/ci.yml
vendored
Normal file
71
.github/workflows/ci.yml
vendored
Normal file
@ -0,0 +1,71 @@
|
|||||||
|
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
|
||||||
Loading…
x
Reference in New Issue
Block a user