From 99a3329bec5a92d10f429d6e14ae750920f0720f Mon Sep 17 00:00:00 2001 From: c8y3 <25362953+c8y3@users.noreply.github.com> Date: Wed, 20 Nov 2024 15:00:29 +0100 Subject: [PATCH] Execute e2e tests in CI --- .github/workflows/ci.yml | 24 ++++++++++++++++++++++++ 1 file changed, 24 insertions(+) diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml index bd91597..3908797 100644 --- a/.github/workflows/ci.yml +++ b/.github/workflows/ci.yml @@ -78,6 +78,30 @@ jobs: working-directory: plugin/validation run: | PYTHONUNBUFFERED=true python -m unittest --verbose + + - name: Start development server + working-directory: plugin/runtime + run: | + docker compose --file docker-compose.dev.yml up --detach + - name: Install e2e dependencies + working-directory: plugin/e2e + run: npm ci + - name: Install playwright dependencies + working-directory: plugin/e2e + run: npx playwright install chromium firefox + - name: Run end to end tests + working-directory: plugin/e2e + run: npx playwright test + - name: Stop development server + working-directory: plugin/runtime + run: | + docker compose down + - uses: actions/upload-artifact@v4 + if: ${{ always() }} + with: + name: playwright-report + path: e2e/playwright-report/ + - name: Package signed .rpm if: endsWith(steps.requestPom.outputs.VERSION,'SNAPSHOT') == false working-directory: plugin