-
Notifications
You must be signed in to change notification settings - Fork 28
57 lines (52 loc) · 1.19 KB
/
ci.yml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
name: CI
on:
pull_request:
branches:
- "main"
push:
branches:
- "main"
jobs:
lint:
name: Lint
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
with:
fetch-depth: 0
- uses: actions/setup-node@v3
with:
cache: "npm"
node-version-file: ".nvmrc"
- uses: nrwl/nx-set-shas@v3
- run: npm ci
- run: npx nx run-many --targets=lint
- run: npx prettier --check .
build-and-test:
name: Build and test
runs-on: ubuntu-latest
services:
qdrant:
image: qdrant/qdrant
ports:
- 6333:6333
permissions:
contents: "read"
id-token: "write"
actions: "read"
pull-requests: write
steps:
- uses: actions/checkout@v4
with:
fetch-depth: 0
- uses: actions/setup-node@v3
with:
cache: "npm"
node-version-file: ".nvmrc"
- run: pip3 install chromadb
- uses: nrwl/nx-set-shas@v3
- run: npm ci
- name: Build
run: npx nx affected --target=build --parallel=3
- name: Test
run: npx nx affected --target=test --parallel=3 --ci --code-coverage