From 7a0e6615d05ba2a3c0119eaf7a6d67f66b9de985 Mon Sep 17 00:00:00 2001 From: Valentin Popov Date: Thu, 5 Feb 2026 21:39:52 +0000 Subject: [PATCH] Add Gitea workflow for testing and E2E integration - Introduced a new workflow file (.gitea/workflows/test.yml) to automate testing processes. - Configured jobs for basic testing and end-to-end (E2E) testing using Jest, Supertest, and Playwright. - Included steps for dependency installation, plugin building, and Strapi server management during E2E tests. - Set up environment variables for E2E tests and ensured proper handling of the Strapi server lifecycle. --- {.github => .gitea}/workflows/test.yml | 18 ++++++++++++++---- 1 file changed, 14 insertions(+), 4 deletions(-) rename {.github => .gitea}/workflows/test.yml (85%) diff --git a/.github/workflows/test.yml b/.gitea/workflows/test.yml similarity index 85% rename from .github/workflows/test.yml rename to .gitea/workflows/test.yml index b810dec..a1e95f0 100644 --- a/.github/workflows/test.yml +++ b/.gitea/workflows/test.yml @@ -12,14 +12,19 @@ jobs: name: Basic runs-on: ubuntu-latest steps: - - uses: actions/checkout@v6 - - uses: actions/setup-node@v6 + - name: Checkout + uses: actions/checkout@v4 + - name: Setup Node + uses: actions/setup-node@v4 with: node-version: 22 cache: "npm" cache-dependency-path: | package-lock.json playground/package-lock.json + - name: Write playground .env + run: | + printf '%s' "${{ secrets.PLAYGROUND_ENV_BASE64 }}" | base64 -d > playground/.env - name: Install root deps run: npm ci - name: Build plugin @@ -53,14 +58,19 @@ jobs: STRAPI_ADMIN_LASTNAME: User DATABASE_FILENAME: .tmp/e2e.db steps: - - uses: actions/checkout@v6 - - uses: actions/setup-node@v6 + - name: Checkout + uses: actions/checkout@v4 + - name: Setup Node + uses: actions/setup-node@v4 with: node-version: 22 cache: "npm" cache-dependency-path: | package-lock.json playground/package-lock.json + - name: Write playground .env + run: | + printf '%s' "${{ secrets.PLAYGROUND_ENV_BASE64 }}" | base64 -d > playground/.env - name: Install root deps run: npm ci - name: Build plugin