Skip to content

Commit

Permalink
ci: [torrust#634] run E2E tests in the testing workflow
Browse files Browse the repository at this point in the history
  • Loading branch information
josecelano committed Jan 23, 2024
1 parent 083af0e commit 3ca6864
Show file tree
Hide file tree
Showing 2 changed files with 30 additions and 1 deletion.
29 changes: 29 additions & 0 deletions .github/workflows/testing.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -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
2 changes: 1 addition & 1 deletion src/e2e/runner.rs
Original file line number Diff line number Diff line change
Expand Up @@ -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: {:?}",
Expand Down

0 comments on commit 3ca6864

Please sign in to comment.