diff options
| author | Valentin Popov <valentin@popov.link> | 2026-02-06 00:53:51 +0300 |
|---|---|---|
| committer | Valentin Popov <valentin@popov.link> | 2026-02-06 00:53:51 +0300 |
| commit | d387c7bf8ae7711858b3348a6efa28bfeb8e878b (patch) | |
| tree | b3b1a6b3b96660c76a9f1ec4b46da4149e87d78f /.gitea | |
| parent | 7a0e6615d05ba2a3c0119eaf7a6d67f66b9de985 (diff) | |
| download | strapi-plugin-checkbox-list-d387c7bf8ae7711858b3348a6efa28bfeb8e878b.tar.xz strapi-plugin-checkbox-list-d387c7bf8ae7711858b3348a6efa28bfeb8e878b.zip | |
Refactor Gitea workflow and update package dependencies
- Simplified the Gitea workflow by removing the E2E testing section and renaming the integration tests job.
- Updated package-lock.json to include new dependencies for escape-string-regexp and removed outdated dependencies.
- Removed Playwright configuration and related test files from the playground directory to streamline testing processes.
Diffstat (limited to '.gitea')
| -rw-r--r-- | .gitea/workflows/test.yml | 68 |
1 files changed, 1 insertions, 67 deletions
diff --git a/.gitea/workflows/test.yml b/.gitea/workflows/test.yml index a1e95f0..e20bcd6 100644 --- a/.gitea/workflows/test.yml +++ b/.gitea/workflows/test.yml @@ -42,72 +42,6 @@ jobs: - name: Build playground working-directory: playground run: npm run build - - name: Integration tests (Jest + Supertest) + - name: Integration tests working-directory: playground run: npm run test:integration - - e2e: - name: E2E - runs-on: ubuntu-latest - needs: test - if: github.event_name == 'push' && github.ref == 'refs/heads/master' - env: - STRAPI_ADMIN_EMAIL: admin@example.com - STRAPI_ADMIN_PASSWORD: Admin12345 - STRAPI_ADMIN_FIRSTNAME: Admin - STRAPI_ADMIN_LASTNAME: User - DATABASE_FILENAME: .tmp/e2e.db - steps: - - 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 - run: npm run build - - name: Pack plugin into playground .yalc - run: | - TARBALL=$(npm pack --silent) - mkdir -p playground/.yalc/strapi-plugin-checkbox-list - tar -xzf "$TARBALL" -C playground/.yalc/strapi-plugin-checkbox-list --strip-components=1 - - name: Install playground deps - working-directory: playground - run: npm install - - name: Install Playwright browsers - working-directory: playground - run: npx playwright install --with-deps chromium - - name: Create admin user - working-directory: playground - run: | - npx strapi admin:create-user \ - --email "$STRAPI_ADMIN_EMAIL" \ - --password "$STRAPI_ADMIN_PASSWORD" \ - --firstname "$STRAPI_ADMIN_FIRSTNAME" \ - --lastname "$STRAPI_ADMIN_LASTNAME" - - name: Start Strapi - env: - DATABASE_FILENAME: .tmp/e2e.db - run: | - rm -f playground/.tmp/e2e.db - npm run develop --prefix playground -- --host 0.0.0.0 --port 1337 & - echo $! > /tmp/strapi.pid - until curl -sSf http://127.0.0.1:1337/admin >/dev/null; do sleep 2; done - - name: E2E tests (Playwright/Cypress) - working-directory: playground - run: npm run e2e - - name: Stop Strapi - if: always() - run: | - if [ -f /tmp/strapi.pid ]; then - kill "$(cat /tmp/strapi.pid)" || true - fi |
