Skip to content

Commit 1d1fa74

Browse files
committed
Add docker compose based integration tests on each PR
1 parent 31ba7a4 commit 1d1fa74

File tree

5 files changed

+33
-99
lines changed

5 files changed

+33
-99
lines changed

.github/workflows/build.yaml

Lines changed: 16 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -37,11 +37,23 @@ jobs:
3737
# push: true
3838
# tags: ${{ steps.meta.outputs.tags }}
3939

40-
test:
40+
docker-compose-test:
41+
name: Docker Compose Test
42+
runs-on: ubuntu-latest
43+
steps:
44+
- name: Checkout
45+
uses: actions/checkout@v3
46+
47+
- name: Tests
48+
uses: isbang/[email protected]
49+
with:
50+
compose-file: "./docker-compose.yml"
51+
52+
unit-tests:
4153
name: Test Suite
4254
runs-on: ubuntu-latest
4355
steps:
44-
- uses: actions/checkout@v2
56+
- uses: actions/checkout@v3
4557
- uses: actions-rs/toolchain@v1
4658
with:
4759
profile: minimal
@@ -55,7 +67,7 @@ jobs:
5567
name: Rustfmt
5668
runs-on: ubuntu-latest
5769
steps:
58-
- uses: actions/checkout@v2
70+
- uses: actions/checkout@v3
5971
- uses: actions-rs/toolchain@v1
6072
with:
6173
profile: minimal
@@ -71,7 +83,7 @@ jobs:
7183
name: Clippy
7284
runs-on: ubuntu-latest
7385
steps:
74-
- uses: actions/checkout@v2
86+
- uses: actions/checkout@v3
7587
- uses: actions-rs/toolchain@v1
7688
with:
7789
profile: minimal

Dockerfile

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -25,6 +25,7 @@ FROM gcr.io/distroless/cc:latest
2525

2626
WORKDIR /parseable
2727

28+
COPY --from=builder /lib/x86_64-linux-gnu/liblzma.so* /lib/x86_64-linux-gnu/
2829
COPY --from=builder /parseable/target/release/parseable /usr/local/bin/parseable
2930

3031
CMD ["/usr/local/bin/parseable"]

Dockerfile.release

Lines changed: 0 additions & 47 deletions
This file was deleted.

Dockerfile.static

Lines changed: 0 additions & 34 deletions
This file was deleted.

docker-compose.yaml

Lines changed: 16 additions & 14 deletions
Original file line numberDiff line numberDiff line change
@@ -30,7 +30,9 @@ services:
3030
- parseable
3131

3232
parseable:
33-
image: parseable/parseable:v0.2.1
33+
build:
34+
context: .
35+
dockerfile: Dockerfile
3436
command: ["parseable", "s3-store"]
3537
ports:
3638
- 8000
@@ -54,7 +56,7 @@ services:
5456
- minio
5557

5658
quest-smoke:
57-
image: parseable/quest:v0.1
59+
image: ghcr.io/parseablehq/quest:main
5860
command: ["smoke", "http://parseable:8000", "admin", "admin"]
5961
networks:
6062
- parseable
@@ -66,15 +68,15 @@ services:
6668
delay: 10s
6769
max_attempts: 10
6870

69-
quest-load:
70-
image: parseable/quest:v0.1
71-
command: ["load", "http://parseable:8000", "admin", "admin"]
72-
networks:
73-
- parseable
74-
depends_on:
75-
- quest-smoke
76-
deploy:
77-
restart_policy:
78-
condition: on-failure
79-
delay: 10s
80-
max_attempts: 10
71+
# quest-load:
72+
# image: ghcr.io/parseablehq/quest:main
73+
# command: ["load", "http://parseable:8000", "admin", "admin"]
74+
# networks:
75+
# - parseable
76+
# depends_on:
77+
# - quest-smoke
78+
# deploy:
79+
# restart_policy:
80+
# condition: on-failure
81+
# delay: 10s
82+
# max_attempts: 10

0 commit comments

Comments
 (0)