Skip to content

Commit bc482cd

Browse files
committed
cleanup + doc/ci fix + sh based e2e test
Signed-off-by: Pushkar Mishra <[email protected]>
1 parent 63f293a commit bc482cd

File tree

15 files changed

+437
-852
lines changed

15 files changed

+437
-852
lines changed

.github/workflows/rust.yml

+19-3
Original file line numberDiff line numberDiff line change
@@ -11,15 +11,31 @@ env:
1111

1212
jobs:
1313
test:
14-
name: Test
14+
name: Unit Tests
1515
runs-on: ubuntu-latest
1616
steps:
1717
- uses: actions/checkout@v3
1818
- uses: dtolnay/rust-toolchain@stable
1919
- uses: Swatinem/rust-cache@v2
20-
- name: Run tests
20+
- name: Run unit tests
2121
run: cargo test
2222

23+
api_test:
24+
name: API Integration Tests
25+
runs-on: ubuntu-latest
26+
steps:
27+
- uses: actions/checkout@v3
28+
- uses: dtolnay/rust-toolchain@stable
29+
- uses: Swatinem/rust-cache@v2
30+
- name: Install dependencies
31+
run: |
32+
sudo apt-get update
33+
sudo apt-get install -y jq curl
34+
- name: Make test script executable
35+
run: chmod +x test_api.sh
36+
- name: Run API tests
37+
run: ./test_api.sh
38+
2339
fmt:
2440
name: Format
2541
runs-on: ubuntu-latest
@@ -41,4 +57,4 @@ jobs:
4157
components: clippy
4258
- uses: Swatinem/rust-cache@v2
4359
- name: Check lints
44-
run: cargo clippy -- -D warnings
60+
run: cargo clippy -- -D warnings

0 commit comments

Comments
 (0)