-
Notifications
You must be signed in to change notification settings - Fork 0
53 lines (44 loc) · 1.12 KB
/
test-typedb.yml
File metadata and controls
53 lines (44 loc) · 1.12 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
name: LocalStack TypeDB Extension Tests
on:
pull_request:
branches:
- main
paths:
- 'localstack-typedb/**'
push:
branches:
- main
paths:
- 'localstack-typedb/**'
workflow_dispatch:
env:
LOCALSTACK_DISABLE_EVENTS: "1"
LOCALSTACK_AUTH_TOKEN: ${{ secrets.TEST_LOCALSTACK_AUTH_TOKEN }}
jobs:
integration-tests:
name: Run TypeDB Extension Tests
runs-on: ubuntu-latest
timeout-minutes: 10
steps:
- name: Checkout
uses: actions/checkout@v4
- name: Set up LocalStack and extension
run: |
cd localstack-typedb
docker pull localstack/localstack-pro &
docker pull typedb/typedb &
pip install localstack
make install
make dist
localstack extensions -v install file://$(ls ./dist/localstack_typedb-*.tar.gz)
DEBUG=1 localstack start -d
localstack wait
- name: Run integration tests
run: |
cd localstack-typedb
make test
- name: Print logs
if: always()
run: |
localstack logs
localstack stop