-
Notifications
You must be signed in to change notification settings - Fork 2
98 lines (83 loc) · 2.68 KB
/
Copy pathfeature-store.yml
File metadata and controls
98 lines (83 loc) · 2.68 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
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
name: Feature Store CI
on:
workflow_call:
push:
paths:
- feature-store/**
- .github/workflows/feature-store.yml
pull_request:
paths:
- feature-store/**
- .github/workflows/feature-store.yml
jobs:
test:
runs-on: ubuntu-latest
timeout-minutes: 15
permissions:
contents: read
strategy:
fail-fast: false
matrix:
runner: [curl, java, js]
env:
ARCADEDB_URL: http://localhost:2480
ARCADEDB_USER: root
ARCADEDB_PASS: arcadedb
steps:
- name: Checkout
uses: actions/checkout@9c091bb21b7c1c1d1991bb908d89e4e9dddfe3e0 # v7.0.0
with:
fetch-depth: 1
- name: Set up Java
if: matrix.runner == 'java'
uses: actions/setup-java@0f481fcb613427c0f801b606911222b5b6f3083a # v5.5.0
with:
java-version: '21'
distribution: 'temurin'
- name: Cache Maven repository
if: matrix.runner == 'java'
uses: actions/cache@55cc8345863c7cc4c66a329aec7e433d2d1c52a9 # v6.1.0
with:
path: ~/.m2
key: ${{ runner.os }}-m2-feature-store-${{ hashFiles('feature-store/java/pom.xml') }}
restore-keys: ${{ runner.os }}-m2-feature-store-
- name: Set up Node.js
if: matrix.runner == 'js'
uses: actions/setup-node@820762786026740c76f36085b0efc47a31fe5020 # v7.0.0
with:
node-version: '22'
- name: Cache npm
if: matrix.runner == 'js'
uses: actions/cache@55cc8345863c7cc4c66a329aec7e433d2d1c52a9 # v6.1.0
with:
path: ~/.npm
key: ${{ runner.os }}-npm-feature-store-${{ hashFiles('feature-store/js/package-lock.json') }}
restore-keys: ${{ runner.os }}-npm-feature-store-
- name: Install JS dependencies
if: matrix.runner == 'js'
working-directory: feature-store/js
run: npm ci
- name: Start ArcadeDB
working-directory: feature-store
run: docker compose up -d
- name: Setup database
working-directory: feature-store
run: ./setup.sh
- name: Run curl queries
if: matrix.runner == 'curl'
working-directory: feature-store
run: ./queries/queries.sh
- name: Build and run Java
if: matrix.runner == 'java'
working-directory: feature-store/java
run: |
mvn package --no-transfer-progress
java -jar target/feature-store.jar
- name: Run JavaScript queries
if: matrix.runner == 'js'
working-directory: feature-store/js
run: node feature-store.js
- name: Teardown
if: always()
working-directory: feature-store
run: docker compose down