From 840e1d86063d29fac5dbc20c4f49ed87a4dd262a Mon Sep 17 00:00:00 2001 From: Jose Celano Date: Tue, 24 Sep 2024 11:09:14 +0100 Subject: [PATCH] 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: https://github.com/torrust/torrust-index/issues/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 ``` --- .github/workflows/e2e.yaml | 44 ++++++++++++++++++++++++++++++++++ .github/workflows/testing.yaml | 6 ++--- 2 files changed, 47 insertions(+), 3 deletions(-) create mode 100644 .github/workflows/e2e.yaml diff --git a/.github/workflows/e2e.yaml b/.github/workflows/e2e.yaml new file mode 100644 index 00000000..20176374 --- /dev/null +++ b/.github/workflows/e2e.yaml @@ -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 diff --git a/.github/workflows/testing.yaml b/.github/workflows/testing.yaml index 075ae057..4c3dfebc 100644 --- a/.github/workflows/testing.yaml +++ b/.github/workflows/testing.yaml @@ -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