diff --git a/.github/workflows/testing.yaml b/.github/workflows/testing.yaml index 02dbb1804..e66242634 100644 --- a/.github/workflows/testing.yaml +++ b/.github/workflows/testing.yaml @@ -110,3 +110,52 @@ 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: setup-docker + name: Setup Toolchain + uses: docker/setup-buildx-action@v3 + + - id: build + name: Build + uses: docker/build-push-action@v5 + with: + file: ./Containerfile + push: false + load: true + target: release + tags: torrust-tracker:local + cache-from: type=gha + cache-to: type=gha + + - id: inspect + name: Inspect + run: docker image inspect torrust-tracker:local + + - id: setup-rust + 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: checkout + name: Checkout Repository + uses: actions/checkout@v4 + + - 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: {:?}",