Skip to content

Commit 3ca6864

Browse files
committed
ci: [torrust#634] run E2E tests in the testing workflow
1 parent 083af0e commit 3ca6864

File tree

2 files changed

+30
-1
lines changed

2 files changed

+30
-1
lines changed

.github/workflows/testing.yaml

+29
Original file line numberDiff line numberDiff line change
@@ -110,3 +110,32 @@ jobs:
110110
- id: test
111111
name: Run Unit Tests
112112
run: cargo test --tests --benches --examples --workspace --all-targets --all-features
113+
114+
e2e:
115+
name: E2E
116+
runs-on: ubuntu-latest
117+
needs: unit
118+
119+
strategy:
120+
matrix:
121+
toolchain: [nightly]
122+
123+
steps:
124+
- id: checkout
125+
name: Checkout Repository
126+
uses: actions/checkout@v4
127+
128+
- id: setup
129+
name: Setup Toolchain
130+
uses: dtolnay/rust-toolchain@stable
131+
with:
132+
toolchain: ${{ matrix.toolchain }}
133+
components: llvm-tools-preview
134+
135+
- id: cache
136+
name: Enable Job Cache
137+
uses: Swatinem/rust-cache@v2
138+
139+
- id: test
140+
name: Run E2E Tests
141+
run: cargo run --bin e2e_tests_runner

src/e2e/runner.rs

+1-1
Original file line numberDiff line numberDiff line change
@@ -28,7 +28,7 @@ pub fn run() {
2828
2929
*/
3030

31-
//Docker::build("./Containerfile", "local").expect("A tracker local docker image should be built");
31+
Docker::build("./Containerfile", "local").expect("A tracker local docker image should be built");
3232

3333
println!(
3434
"Current dir: {:?}",

0 commit comments

Comments
 (0)