From 3ca686410fa52d55d97643d1f5dc1ea8a122d21f Mon Sep 17 00:00:00 2001 From: Jose Celano Date: Tue, 23 Jan 2024 12:42:13 +0000 Subject: [PATCH] ci: [#634] run E2E tests in the testing workflow --- .github/workflows/testing.yaml | 29 +++++++++++++++++++++++++++++ src/e2e/runner.rs | 2 +- 2 files changed, 30 insertions(+), 1 deletion(-) diff --git a/.github/workflows/testing.yaml b/.github/workflows/testing.yaml index 02dbb1804..da7223dc6 100644 --- a/.github/workflows/testing.yaml +++ b/.github/workflows/testing.yaml @@ -110,3 +110,32 @@ jobs: - id: test name: Run Unit Tests run: cargo test --tests --benches --examples --workspace --all-targets --all-features + + e2e: + name: E2E + runs-on: ubuntu-latest + needs: unit + + strategy: + matrix: + toolchain: [nightly] + + steps: + - id: checkout + name: Checkout Repository + uses: actions/checkout@v4 + + - id: setup + name: Setup Toolchain + uses: dtolnay/rust-toolchain@stable + with: + toolchain: ${{ matrix.toolchain }} + components: llvm-tools-preview + + - id: cache + name: Enable Job Cache + uses: Swatinem/rust-cache@v2 + + - id: test + name: Run E2E Tests + run: cargo run --bin e2e_tests_runner diff --git a/src/e2e/runner.rs b/src/e2e/runner.rs index 16d8d2592..3a7e1c863 100644 --- a/src/e2e/runner.rs +++ b/src/e2e/runner.rs @@ -28,7 +28,7 @@ pub fn run() { */ - //Docker::build("./Containerfile", "local").expect("A tracker local docker image should be built"); + Docker::build("./Containerfile", "local").expect("A tracker local docker image should be built"); println!( "Current dir: {:?}",