Skip to content

Commit fbda83c

Browse files
author
Devdutt Shenoi
committed
ci: pull = lint+integration
1 parent 1c83a63 commit fbda83c

File tree

2 files changed

+34
-63
lines changed

2 files changed

+34
-63
lines changed

.github/workflows/integration-test.yaml

Lines changed: 0 additions & 38 deletions
This file was deleted.
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
name: Linter
1+
name: Integration
22

33
on:
44
pull_request:
@@ -8,13 +8,9 @@ on:
88
- "assets/**"
99
- "**.md"
1010

11-
env:
12-
REGISTRY: ghcr.io
13-
IMAGE_NAME: ${{ github.repository }}
14-
1511
jobs:
16-
unit-tests:
17-
name: Unit tests
12+
fmt:
13+
name: Rust fmt and clippy
1814
runs-on: ubuntu-latest
1915
steps:
2016
- uses: actions/checkout@v3
@@ -26,12 +22,18 @@ jobs:
2622
- uses: Swatinem/rust-cache@v2
2723
with:
2824
shared-key: "target-cache"
25+
- run: rustup component add rustfmt clippy
2926
- uses: actions-rs/cargo@v1
3027
with:
31-
command: test
28+
command: fmt
29+
args: --all -- --check
30+
- uses: actions-rs/cargo@v1
31+
with:
32+
command: clippy
33+
args: -- -D warnings
3234

33-
fmt:
34-
name: Rust fmt check
35+
unit-tests:
36+
name: Unit tests
3537
runs-on: ubuntu-latest
3638
steps:
3739
- uses: actions/checkout@v3
@@ -43,27 +45,34 @@ jobs:
4345
- uses: Swatinem/rust-cache@v2
4446
with:
4547
shared-key: "target-cache"
46-
- run: rustup component add rustfmt
4748
- uses: actions-rs/cargo@v1
4849
with:
49-
command: fmt
50-
args: --all -- --check
50+
command: test
5151

52-
clippy:
53-
name: Cargo Clippy check
52+
docker-compose-test:
53+
name: Quest Smoke and Load Tests for Standalone deployments
5454
runs-on: ubuntu-latest
5555
steps:
56-
- uses: actions/checkout@v3
57-
- uses: actions-rs/toolchain@v1
58-
with:
59-
profile: minimal
60-
toolchain: stable
61-
override: true
56+
- name: Checkout
57+
uses: actions/checkout@v4
6258
- uses: Swatinem/rust-cache@v2
6359
with:
6460
shared-key: "target-cache"
65-
- run: rustup component add clippy
66-
- uses: actions-rs/cargo@v1
61+
- name: Start compose
62+
run: docker compose -f docker-compose-test.yaml up --build --exit-code-from quest
63+
- name: Stop compose
64+
run: docker compose -f docker-compose-test.yaml down
65+
66+
docker-compose-distributed-test:
67+
name: Quest Smoke and Load Tests for Distributed deployments
68+
runs-on: ubuntu-latest
69+
steps:
70+
- name: Checkout
71+
uses: actions/checkout@v4
72+
- uses: Swatinem/rust-cache@v2
6773
with:
68-
command: clippy
69-
args: -- -D warnings
74+
shared-key: "target-cache"
75+
- name: Start compose
76+
run: docker compose -f docker-compose-distributed-test.yaml up --build --exit-code-from quest
77+
- name: Stop compose
78+
run: docker compose -f docker-compose-distributed-test.yaml down

0 commit comments

Comments
 (0)