Skip to content

Commit

Permalink
Merge torrust#736: Move testing with MySQL to a new workflow
Browse files Browse the repository at this point in the history
840e1d8 ci: move testing with MySQL to a new workflow (Jose Celano)

Pull request description:

  Integration tests with MySQL are working locally but not in the GitHub Runner. We don't know why yet. See torrust#580.

  That's affecting deployments and releases. We move the execution to a new temporary workflow until it's fixed. Be sure to execute it locally before opening a new PR:

  ```console
  ./contrib/dev-tools/container/e2e/mysql/run-e2e-tests.sh
  ```

ACKs for top commit:
  josecelano:
    ACK 840e1d8

Tree-SHA512: b828e98b4fcde4490f6d3d7b2d837c943e377e2c314d8ef69de5977fe3e09e7e1f2ad1c6c5d850dc33c26113f5eceeda743eb467d490ed7433c43d3b1763402e
  • Loading branch information
josecelano committed Sep 24, 2024
2 parents 6954805 + 840e1d8 commit e953836
Show file tree
Hide file tree
Showing 2 changed files with 47 additions and 3 deletions.
44 changes: 44 additions & 0 deletions .github/workflows/e2e.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,44 @@
# Temporary execution of E2E tests using MySQL becuase it's failing
# in the `testing.yml` workflows and affects deployments and releases.
# See https://github.com/torrust/torrust-index/issues/580
name: E2E Testing

on:
push:
pull_request:

env:
CARGO_TERM_COLOR: always

jobs:
e2e:
name: E2E
runs-on: ubuntu-latest

strategy:
matrix:
toolchain: [stable, 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 }}

- id: cache
name: Enable Job Cache
uses: Swatinem/rust-cache@v2

# Temporary Cleaning to avoid Rust Compiler Bug
- id: clean
name: Make Build Clean
run: cargo clean

- id: test-mysql
name: Run Integration Tests (MySQL)
run: ./contrib/dev-tools/container/e2e/mysql/run-e2e-tests.sh
6 changes: 3 additions & 3 deletions .github/workflows/testing.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -156,6 +156,6 @@ jobs:
name: Run Integration Tests (SQLite)
run: ./contrib/dev-tools/container/e2e/sqlite/run-e2e-tests.sh

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

0 comments on commit e953836

Please sign in to comment.