-
Notifications
You must be signed in to change notification settings - Fork 6
62 lines (62 loc) · 1.67 KB
/
ci-tests.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
58
59
60
61
62
name: Tests - stargate-mongoose
on:
pull_request:
branches:
- main
push:
branches:
- main
jobs:
tests:
runs-on: ubuntu-latest
env:
DATA_API_URI: http://localhost:8181/v1/testks1
STARGATE_AUTH_URL: http://localhost:8081/v1/auth
STARGATE_USERNAME: cassandra
STARGATE_PASSWORD: cassandra
steps:
- name: disable and stop mono-xsp4.service
run: |
sudo kill -9 $(sudo lsof -t -i:8084)
- uses: actions/checkout@v3
- name: Set up Data API
run: |
chmod +x bin/start_data_api.sh
bin/start_data_api.sh
- name: Wait for services
run: |
while ! nc -z localhost 8181; do sleep 1; done
while ! nc -z localhost 8081; do sleep 1; done
- name: Setting up the node version
uses: actions/setup-node@v3
with:
node-version: 18.18.0
- name: setup project
run: npm i
- name: run tests
run: |
npm run test
e2e:
runs-on: ubuntu-latest
needs: tests
steps:
- name: disable and stop mono-xsp4.service
run: |
sudo kill -9 $(sudo lsof -t -i:8084)
- uses: actions/checkout@v3
- name: Setting up the node version
uses: actions/setup-node@v3
with:
node-version: 18.18.0
- name: setup project
run: npm i
- name: build
run: npm run build
- name: pack
run: node ./bin/create-tarball.js
- name: install smoke test
working-directory: ./tests/e2e
run: npm install
- name: run e2e smoke test
working-directory: ./tests/e2e
run: node .