Add Gitea workflow for testing and E2E integration
Some checks failed
RenovateBot / renovate (push) Successful in 25s
Test / Basic (push) Successful in 3m26s
Test / E2E (push) Has been cancelled

- 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.
This commit is contained in:
2026-02-05 21:39:52 +00:00
parent 9012c5cb1f
commit 7a0e6615d0

View File

@@ -12,14 +12,19 @@ jobs:
name: Basic name: Basic
runs-on: ubuntu-latest runs-on: ubuntu-latest
steps: steps:
- uses: actions/checkout@v6 - name: Checkout
- uses: actions/setup-node@v6 uses: actions/checkout@v4
- name: Setup Node
uses: actions/setup-node@v4
with: with:
node-version: 22 node-version: 22
cache: "npm" cache: "npm"
cache-dependency-path: | cache-dependency-path: |
package-lock.json package-lock.json
playground/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 - name: Install root deps
run: npm ci run: npm ci
- name: Build plugin - name: Build plugin
@@ -53,14 +58,19 @@ jobs:
STRAPI_ADMIN_LASTNAME: User STRAPI_ADMIN_LASTNAME: User
DATABASE_FILENAME: .tmp/e2e.db DATABASE_FILENAME: .tmp/e2e.db
steps: steps:
- uses: actions/checkout@v6 - name: Checkout
- uses: actions/setup-node@v6 uses: actions/checkout@v4
- name: Setup Node
uses: actions/setup-node@v4
with: with:
node-version: 22 node-version: 22
cache: "npm" cache: "npm"
cache-dependency-path: | cache-dependency-path: |
package-lock.json package-lock.json
playground/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 - name: Install root deps
run: npm ci run: npm ci
- name: Build plugin - name: Build plugin