Skip to content

Commit 840e1d8

Browse files
committed
ci: move testing with MySQL to a new workflow
Integration tests with MySQL are working locally but not in the GitHub Runner. We don't know yet why. See: #580 That's affecting deployments and releases. We move the execution to a new temporary workflows until it's fixed. Be sure to execute it locally before opening new PR: ```console ./contrib/dev-tools/container/e2e/mysql/run-e2e-tests.sh ```
1 parent 6954805 commit 840e1d8

File tree

2 files changed

+47
-3
lines changed

2 files changed

+47
-3
lines changed

.github/workflows/e2e.yaml

+44
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,44 @@
1+
# Temporary execution of E2E tests using MySQL becuase it's failing
2+
# in the `testing.yml` workflows and affects deployments and releases.
3+
# See https://github.com/torrust/torrust-index/issues/580
4+
name: E2E Testing
5+
6+
on:
7+
push:
8+
pull_request:
9+
10+
env:
11+
CARGO_TERM_COLOR: always
12+
13+
jobs:
14+
e2e:
15+
name: E2E
16+
runs-on: ubuntu-latest
17+
18+
strategy:
19+
matrix:
20+
toolchain: [stable, nightly]
21+
22+
steps:
23+
- id: checkout
24+
name: Checkout Repository
25+
uses: actions/checkout@v4
26+
27+
- id: setup
28+
name: Setup Toolchain
29+
uses: dtolnay/rust-toolchain@stable
30+
with:
31+
toolchain: ${{ matrix.toolchain }}
32+
33+
- id: cache
34+
name: Enable Job Cache
35+
uses: Swatinem/rust-cache@v2
36+
37+
# Temporary Cleaning to avoid Rust Compiler Bug
38+
- id: clean
39+
name: Make Build Clean
40+
run: cargo clean
41+
42+
- id: test-mysql
43+
name: Run Integration Tests (MySQL)
44+
run: ./contrib/dev-tools/container/e2e/mysql/run-e2e-tests.sh

.github/workflows/testing.yaml

+3-3
Original file line numberDiff line numberDiff line change
@@ -156,6 +156,6 @@ jobs:
156156
name: Run Integration Tests (SQLite)
157157
run: ./contrib/dev-tools/container/e2e/sqlite/run-e2e-tests.sh
158158

159-
- id: test-mysql
160-
name: Run Integration Tests (MySQL)
161-
run: ./contrib/dev-tools/container/e2e/mysql/run-e2e-tests.sh
159+
#- id: test-mysql
160+
# name: Run Integration Tests (MySQL)
161+
# run: ./contrib/dev-tools/container/e2e/mysql/run-e2e-tests.sh

0 commit comments

Comments
 (0)