Skip to content

Commit

Permalink
ci: service tests
Browse files Browse the repository at this point in the history
  • Loading branch information
chesedo committed Jul 23, 2022
1 parent df1f32d commit ade434c
Showing 1 changed file with 47 additions and 19 deletions.
66 changes: 47 additions & 19 deletions .circleci/config.yml
Original file line number Diff line number Diff line change
Expand Up @@ -104,6 +104,26 @@ jobs:
-A clippy::let-unit-value \
-A clippy::format-push-string
- save-cache
test-service:
parameters:
framework:
description: "Framework to activate"
type: string
machine:
image: ubuntu-2204:2022.04.1
docker_layer_caching: true
steps:
- run:
name: Install Rust
command: |
curl --proto '=https' --tlsv1.2 -sSf https://sh.rustup.rs | sh -s -- -y
sudo apt install -y openssl
- checkout
- restore-cache
- run:
name: Run unit tests
command: cargo test --package shuttle-service --features="codegen,loader,secrets,<< parameters.framework >>"
- save-cache

build-test-and-push:
resource_class: xlarge
Expand Down Expand Up @@ -174,28 +194,36 @@ workflows:
version: 2
fmt:
jobs:
- fmt-workspace
- clippy-workspace:
requires:
- fmt-workspace
# - fmt-workspace
# - clippy-workspace:
# name: clippy-workspace-<< matrix.framework >>
# requires:
# - fmt-workspace
# matrix:
# parameters:
# framework: ["web-axum", "web-rocket", "web-tide", "web-tower"]
# - check-standalone:
# requires:
# - clippy-workspace
# matrix:
# parameters:
# path:
# - examples/axum/hello-world
# - examples/axum/websocket
# - examples/rocket/authentication
# - examples/rocket/hello-world
# - examples/rocket/postgres
# - examples/rocket/url-shortener
# - examples/tide/hello-world
# - examples/tide/postgres
# - examples/tower/hello-world
- test-service:
name: test-service-<< matrix.framework >>
# requires:
# - clippy-workspace-<< matrix.framework >>
matrix:
parameters:
framework: ["web-axum", "web-rocket", "web-tide", "web-tower"]
- check-standalone:
requires:
- clippy-workspace
matrix:
parameters:
path:
- examples/axum/hello-world
- examples/axum/websocket
- examples/rocket/authentication
- examples/rocket/hello-world
- examples/rocket/postgres
- examples/rocket/url-shortener
- examples/tide/hello-world
- examples/tide/postgres
- examples/tower/hello-world
# build-test-and-push:
# jobs:
# - build-test-and-push

0 comments on commit ade434c

Please sign in to comment.