Skip to content

Commit aaab9b5

Browse files
committed
add CI
1 parent d4e83c0 commit aaab9b5

1 file changed

Lines changed: 71 additions & 0 deletions

File tree

.github/workflows/ci.yml

Lines changed: 71 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,71 @@
1+
name: CI
2+
3+
on:
4+
push:
5+
branches: [ main ]
6+
pull_request:
7+
branches: [ main ]
8+
9+
jobs:
10+
lint:
11+
name: Linting (Biome)
12+
runs-on: ubuntu-latest
13+
steps:
14+
- uses: actions/checkout@v4
15+
- name: Setup Biome
16+
uses: biomejs/setup-biome@v2
17+
with:
18+
version: 2.3.12
19+
- name: Run Biome
20+
run: biome ci .
21+
22+
test-orchestrator:
23+
name: Orchestrator Tests
24+
runs-on: ubuntu-latest
25+
steps:
26+
- uses: actions/checkout@v4
27+
- name: Setup Node
28+
uses: actions/setup-node@v4
29+
with:
30+
node-version: 20
31+
cache: 'npm'
32+
cache-dependency-path: orchestrator/package-lock.json
33+
- name: Install dependencies
34+
run: npm ci
35+
working-directory: orchestrator
36+
- name: Run Vitest
37+
run: npm run test:run
38+
working-directory: orchestrator
39+
40+
build:
41+
name: Build Verification
42+
runs-on: ubuntu-latest
43+
steps:
44+
- uses: actions/checkout@v4
45+
- name: Setup Node
46+
uses: actions/setup-node@v4
47+
with:
48+
node-version: 20
49+
cache: 'npm'
50+
cache-dependency-path: |
51+
orchestrator/package-lock.json
52+
extractors/gradcracker/package-lock.json
53+
extractors/ukvisajobs/package-lock.json
54+
55+
- name: Build Orchestrator
56+
run: |
57+
npm ci
58+
npm run build
59+
working-directory: orchestrator
60+
61+
- name: Build gradcracker extractor
62+
run: |
63+
npm ci
64+
npm run build
65+
working-directory: extractors/gradcracker
66+
67+
- name: Build ukvisajobs extractor
68+
run: |
69+
npm ci
70+
npm run build
71+
working-directory: extractors/ukvisajobs

0 commit comments

Comments
 (0)