-
Notifications
You must be signed in to change notification settings - Fork 0
64 lines (54 loc) · 1.35 KB
/
Copy pathci.yml
File metadata and controls
64 lines (54 loc) · 1.35 KB
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
58
59
60
61
62
63
64
name: CI
on:
push:
branches: [main]
pull_request:
# Cancel superseded runs on the same ref to keep the queue lean.
concurrency:
group: ${{ github.workflow }}-${{ github.ref }}
cancel-in-progress: true
jobs:
build:
name: Typecheck
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v5
- uses: actions/setup-node@v5
with:
node-version: '22'
cache: npm
- name: Install dependencies
run: npm ci
- name: Typecheck (tsc)
run: npm run build
test:
name: Test
runs-on: ubuntu-latest
services:
neo4j:
image: neo4j:5.20-community
env:
NEO4J_AUTH: neo4j/test1234
NEO4J_PLUGINS: '["apoc"]'
ports:
- 7687:7687
options: >-
--health-cmd "cypher-shell -u neo4j -p test1234 'RETURN 1' || exit 1"
--health-interval 10s
--health-timeout 5s
--health-retries 30
--health-start-period 30s
env:
NEO4J_URI: bolt://localhost:7687
NEO4J_USER: neo4j
NEO4J_PASSWORD: test1234
steps:
- uses: actions/checkout@v5
- uses: actions/setup-node@v5
with:
node-version: '22'
cache: npm
- name: Install dependencies
run: npm ci
- name: Run vitest with coverage
run: npm run test:coverage