Skip to content

Commit 2581373

Browse files
committed
add build config
1 parent f4be749 commit 2581373

File tree

1 file changed

+44
-0
lines changed

1 file changed

+44
-0
lines changed

.github/workflows/typedb.yml

Lines changed: 44 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,44 @@
1+
name: LocalStack TypeDB Extension Tests
2+
3+
on:
4+
pull_request:
5+
workflow_dispatch:
6+
7+
env:
8+
LOCALSTACK_DISABLE_EVENTS: "1"
9+
LOCALSTACK_AUTH_TOKEN: ${{ secrets.TEST_LOCALSTACK_AUTH_TOKEN }}
10+
11+
jobs:
12+
integration-tests:
13+
name: Run Integration Tests
14+
runs-on: ubuntu-latest
15+
timeout-minutes: 10
16+
steps:
17+
- name: Checkout
18+
uses: actions/checkout@v4
19+
20+
- name: Setup LocalStack and extension
21+
run: |
22+
cd typedb
23+
24+
docker pull localstack/localstack-pro &
25+
docker pull typedb/typedb &
26+
pip install localstack
27+
28+
make install
29+
make dist
30+
localstack extensions -v install file://$(ls ./dist/localstack_typedb-*.tar.gz)
31+
32+
DEBUG=1 localstack start -d
33+
localstack wait
34+
35+
- name: Run integration tests
36+
run: |
37+
cd typedb
38+
make test
39+
40+
- name: Print logs
41+
if: always()
42+
run: |
43+
localstack logs
44+
localstack stop

0 commit comments

Comments
 (0)