summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorValentin Popov <valentin@popov.link>2026-02-06 00:39:52 +0300
committerValentin Popov <valentin@popov.link>2026-02-06 00:39:52 +0300
commit7a0e6615d05ba2a3c0119eaf7a6d67f66b9de985 (patch)
tree28d8e75da018b4b0540eab6cfbe7ef57dd90c1be
parent9012c5cb1f57799cb368e99583a84733c70f9e59 (diff)
downloadstrapi-plugin-checkbox-list-7a0e6615d05ba2a3c0119eaf7a6d67f66b9de985.tar.xz
strapi-plugin-checkbox-list-7a0e6615d05ba2a3c0119eaf7a6d67f66b9de985.zip
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.
-rw-r--r--.gitea/workflows/test.yml (renamed from .github/workflows/test.yml)18
1 files changed, 14 insertions, 4 deletions
diff --git a/.github/workflows/test.yml b/.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