-
Notifications
You must be signed in to change notification settings - Fork 0
65 lines (53 loc) · 1.59 KB
/
test.yaml
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
name: Next.js Version Matrix Test
on:
push:
branches: [ main ]
pull_request:
branches: [ main ]
env:
HDB_ADMIN_USERNAME: "hdb_admin"
HDB_ADMIN_PASSWORD: "password"
HDB_ROOT_PATH: "/tmp/hdb"
jobs:
test:
runs-on: ubuntu-latest
strategy:
matrix:
# next-version: [9, 10, 11, 12, 13, 14, 15]
node-version: [16, 18, 20, 21, 22]
# exclude:
# - next-version: 9
# node-version: 18
steps:
- uses: actions/checkout@v4
- name: Setup Node.js ${{ matrix.node-version }}
uses: actions/setup-node@v4
with:
node-version: ${{ matrix.node-version }}
- name: Setup HarperDB
run: |
npm install -g harperdb
timeout 30s harperdb install \
--TC_AGREEMENT yes \
--HDB_ADMIN_USERNAME ${{ env.HDB_ADMIN_USERNAME }} \
--HDB_ADMIN_PASSWORD ${{ env.HDB_ADMIN_PASSWORD }} \
--ROOTPATH ${{ env.HDB_ROOT_PATH }} \
--OPERATIONSAPI_NETWORK_PORT 9925 || true
harperdb stop
- name: Load Base Component
run: |
cp -r test/integration/harperdb-base-component ${{ env.HDB_ROOT_PATH }}/components/
- name: Start HarperDB
run: |
harperdb start
- name: Query
run: |
curl http://localhost:9925/Dog/0
# - name: Install dependencies
# run: |
# npm install
# npm install next@${{ matrix.next-version }}
# - name: Build
# run: npm run build
# - name: Test
# run: npm test