ci(admin-web): Docker build & push vers registry Gitea + reusable tests #10

Closed
millianlmx wants to merge 6 commits from feature/cicd-admin-web into main
4 changed files with 5559 additions and 45 deletions
Showing only changes of commit c517e9a861 - Show all commits

View File

@@ -1,41 +0,0 @@
name: Admin Web Tests
on:
workflow_call:
inputs:
node-version:
type: string
default: '22'
jobs:
test:
name: Test
runs-on: ubuntu-latest
timeout-minutes: 10
defaults:
run:
working-directory: admin-web
steps:
- uses: actions/checkout@v4
- name: Setup Node.js
uses: actions/setup-node@v4
with:
node-version: ${{ inputs.node-version }}
cache: 'npm'
cache-dependency-path: admin-web/package-lock.json
- name: Install dependencies
run: npm ci
- name: Type check
run: npx tsc --noEmit
- name: Run unit tests
run: npx vitest run
- name: Install Playwright browsers
run: npx playwright install --with-deps chromium
- name: Run E2E tests
run: npx playwright test

View File

@@ -38,9 +38,34 @@ jobs:
name: Admin Web CI
needs: changes
if: needs.changes.outputs.admin-web == 'true'
uses: ./.github/workflows/admin-web-tests.yml
with:
node-version: '22'
runs-on: ubuntu-latest
defaults:
run:
working-directory: admin-web
steps:
- uses: actions/checkout@v4
- name: Setup Node.js
uses: actions/setup-node@v4
with:
node-version: '22'
cache: 'npm'
cache-dependency-path: admin-web/package-lock.json
- name: Install dependencies
run: npm ci
- name: Type check
run: npx tsc --noEmit
- name: Run unit tests
run: npx vitest run
- name: Install Playwright browsers
run: npx playwright install --with-deps chromium
- name: Run E2E tests
run: npx playwright test
# ── YouTube Worker: Node.js microservice ──
youtube-worker-check:

View File

@@ -14,7 +14,36 @@ concurrency:
jobs:
admin-web-test:
uses: ./.github/workflows/admin-web-tests.yml
name: Admin Web Tests
runs-on: ubuntu-latest
timeout-minutes: 10
defaults:
run:
working-directory: admin-web
steps:
- uses: actions/checkout@v4
- name: Setup Node.js
uses: actions/setup-node@v4
with:
node-version: '22'
cache: 'npm'
cache-dependency-path: admin-web/package-lock.json
- name: Install dependencies
run: npm ci
- name: Type check
run: npx tsc --noEmit
- name: Run unit tests
run: npx vitest run
- name: Install Playwright browsers
run: npx playwright install --with-deps chromium
- name: Run E2E tests
run: npx playwright test
semantic-release:
name: Semantic Release

File diff suppressed because it is too large Load Diff