packages/kits - next/required / Setup - Stage (push) Successful in 41s
packages/ssg - next/required / Setup - Stage (push) Successful in 40s
packages/stl - next/required / Setup - Stage (push) Successful in 40s
packages/ui - next/required / Setup - Stage (push) Successful in 44s
services/docs - next/required / Setup - Hugo (push) Successful in 4s
services/static - next/required / Setup - Stage (push) Successful in 41s
packages/kits - next/required / Build - Configs & UI (push) Canceled after 0s
packages/kits - next/required / Lint - Kits (push) Canceled after 0s
packages/kits - next/required / Typecheck - Kits (push) Canceled after 0s
packages/kits - next/required / Test - Unit (push) Canceled after 0s
packages/kits - next/required / Build - Storybook (push) Canceled after 0s
packages/kits - next/required / Test - Storybook (push) Canceled after 0s
packages/kits - next/required / Build - Kits (push) Canceled after 0s
packages/ssg - next/required / Build - Configs (push) Canceled after 0s
packages/ssg - next/required / Lint - SSG (push) Canceled after 0s
packages/ssg - next/required / Typecheck - SSG (push) Canceled after 0s
packages/ssg - next/required / Build - SSG (push) Canceled after 0s
packages/stl - next/required / Build - Configs (push) Canceled after 0s
packages/stl - next/required / Lint - STL (push) Canceled after 0s
packages/stl - next/required / Typecheck - STL (push) Canceled after 0s
packages/stl - next/required / Test - STL (push) Canceled after 0s
packages/stl - next/required / Build - STL (push) Canceled after 0s
packages/ui - next/required / Build - Configs (push) Canceled after 0s
packages/ui - next/required / Lint - UI (push) Canceled after 0s
packages/ui - next/required / Typecheck - UI (push) Canceled after 0s
packages/ui - next/required / Test - Unit (push) Canceled after 0s
packages/ui - next/required / Build - Storybook (push) Canceled after 0s
packages/ui - next/required / Test - Storybook (push) Canceled after 0s
packages/ui - next/required / Build - UI (push) Canceled after 0s
services/www - next/required / Setup - Stage (push) Canceled after 46s
services/docs - next/required / Build - Hugo Site (push) Canceled after 0s
services/docs - next/required / Release - Docker Image (push) Canceled after 0s
services/docs - next/required / Deploy - Kubernetes (GitOps) (push) Canceled after 0s
services/docs - next/required / Verify - Production Rollout (push) Canceled after 0s
services/static - next/required / Build - Configs (push) Canceled after 0s
services/static - next/required / Lint - Static (push) Canceled after 0s
services/static - next/required / Typecheck - Static (push) Canceled after 0s
services/static - next/required / Build - Static Site (push) Canceled after 0s
services/static - next/required / Deploy - S3 (push) Canceled after 0s
services/www - next/required / Build - Configs (push) Canceled after 0s
services/www - next/required / Lint - WWW (push) Canceled after 0s
services/www - next/required / Typecheck - WWW (push) Canceled after 0s
services/www - next/required / Build - Storybook (push) Canceled after 0s
services/www - next/required / Test - Unit (push) Canceled after 0s
services/www - next/required / Test - Storybook (push) Canceled after 0s
services/www - next/required / Build - WWW Service (push) Canceled after 0s
services/www - next/required / Build - Docker Image (push) Canceled after 0s
294 lines
9.5 KiB
YAML
294 lines
9.5 KiB
YAML
name: packages/ui - pr/required
|
|
'on':
|
|
pull_request:
|
|
branches:
|
|
- next
|
|
paths:
|
|
- packages/ui/**
|
|
- packages/stl/**
|
|
- packages/i18n/**
|
|
- .gitea/workflows/packages-ui-pr-required.yml
|
|
- pnpm-lock.yaml
|
|
- ci/scripts/**
|
|
concurrency:
|
|
group: ci-pr-ui-${{ github.head_ref }}
|
|
cancel-in-progress: true
|
|
permissions:
|
|
contents: read
|
|
actions: read
|
|
jobs:
|
|
setup-stage:
|
|
name: Setup - Stage
|
|
runs-on: apex-debian13
|
|
outputs: {}
|
|
steps:
|
|
- name: Checkout repository
|
|
uses: actions/checkout@v4
|
|
- name: Setup environment
|
|
run: bash ci/scripts/setup-env.sh 9.12.3 20
|
|
- name: Restore repository dependency cache
|
|
id: dependency-cache
|
|
run: python3 ci/scripts/cache.py restore
|
|
env:
|
|
CACHE_TOKEN: ${{ github.token }}
|
|
- name: Install dependencies
|
|
run: pnpm install --frozen-lockfile
|
|
- name: Pack dependency cache
|
|
run: python3 ci/scripts/cache.py pack
|
|
- uses: actions/upload-artifact@v4
|
|
with:
|
|
name: ${{ steps.dependency-cache.outputs.key }}
|
|
path: .ci/pnpm-store.tar
|
|
retention-days: 7
|
|
build-configs:
|
|
name: Build - Configs
|
|
needs: setup-stage
|
|
runs-on: apex-debian13
|
|
steps:
|
|
- name: Checkout repository
|
|
uses: actions/checkout@v4
|
|
- name: Setup environment
|
|
run: bash ci/scripts/setup-env.sh 9.12.3 20
|
|
- name: Restore repository dependency cache
|
|
id: dependency-cache
|
|
run: python3 ci/scripts/cache.py restore
|
|
env:
|
|
CACHE_TOKEN: ${{ github.token }}
|
|
- name: Install dependencies
|
|
run: pnpm install --frozen-lockfile
|
|
- name: Build Rsbuild config
|
|
run: pnpm --filter @ermnvldmr/rsbuild-config build
|
|
- name: Build Storybook config
|
|
run: pnpm --filter @ermnvldmr/storybook-config build
|
|
- name: Build i18n
|
|
run: pnpm --filter @ermnvldmr/i18n build
|
|
- name: Upload Rsbuild Config
|
|
uses: actions/upload-artifact@v4
|
|
with:
|
|
name: rsbuild-config-dist-${{ github.run_id }}
|
|
path: packages/rsbuild-config/dist
|
|
retention-days: 30
|
|
- name: Upload Storybook Config
|
|
uses: actions/upload-artifact@v4
|
|
with:
|
|
name: storybook-config-dist-${{ github.run_id }}
|
|
path: packages/storybook-config/dist
|
|
retention-days: 30
|
|
- name: Upload i18n dist
|
|
uses: actions/upload-artifact@v4
|
|
with:
|
|
name: i18n-dist-${{ github.run_id }}
|
|
path: packages/i18n/dist
|
|
retention-days: 30
|
|
lint-ui:
|
|
name: Lint - UI
|
|
needs: build-configs
|
|
runs-on: apex-debian13
|
|
steps:
|
|
- name: Checkout repository
|
|
uses: actions/checkout@v4
|
|
- name: Setup environment
|
|
run: bash ci/scripts/setup-env.sh 9.12.3 20
|
|
- name: Restore repository dependency cache
|
|
id: dependency-cache
|
|
run: python3 ci/scripts/cache.py restore
|
|
env:
|
|
CACHE_TOKEN: ${{ github.token }}
|
|
- name: Install dependencies
|
|
run: pnpm install --frozen-lockfile
|
|
- name: Download Rsbuild Config
|
|
uses: actions/download-artifact@v4
|
|
with:
|
|
name: rsbuild-config-dist-${{ github.run_id }}
|
|
path: packages/rsbuild-config/dist
|
|
- name: Download Storybook Config
|
|
uses: actions/download-artifact@v4
|
|
with:
|
|
name: storybook-config-dist-${{ github.run_id }}
|
|
path: packages/storybook-config/dist
|
|
- name: Download i18n dist
|
|
uses: actions/download-artifact@v4
|
|
with:
|
|
name: i18n-dist-${{ github.run_id }}
|
|
path: packages/i18n/dist
|
|
- name: Lint UI package
|
|
run: pnpm --filter @ermnvldmr/ui lint
|
|
typecheck-ui:
|
|
name: Typecheck - UI
|
|
needs: build-configs
|
|
runs-on: apex-debian13
|
|
steps:
|
|
- name: Checkout repository
|
|
uses: actions/checkout@v4
|
|
- name: Setup environment
|
|
run: bash ci/scripts/setup-env.sh 9.12.3 20
|
|
- name: Restore repository dependency cache
|
|
id: dependency-cache
|
|
run: python3 ci/scripts/cache.py restore
|
|
env:
|
|
CACHE_TOKEN: ${{ github.token }}
|
|
- name: Install dependencies
|
|
run: pnpm install --frozen-lockfile
|
|
- name: Download Rsbuild Config
|
|
uses: actions/download-artifact@v4
|
|
with:
|
|
name: rsbuild-config-dist-${{ github.run_id }}
|
|
path: packages/rsbuild-config/dist
|
|
- name: Download Storybook Config
|
|
uses: actions/download-artifact@v4
|
|
with:
|
|
name: storybook-config-dist-${{ github.run_id }}
|
|
path: packages/storybook-config/dist
|
|
- name: Download i18n dist
|
|
uses: actions/download-artifact@v4
|
|
with:
|
|
name: i18n-dist-${{ github.run_id }}
|
|
path: packages/i18n/dist
|
|
- name: Typecheck UI package
|
|
run: pnpm --filter @ermnvldmr/ui typecheck
|
|
test-ui:
|
|
name: Test - Unit
|
|
needs: build-configs
|
|
runs-on: apex-debian13
|
|
steps:
|
|
- name: Checkout repository
|
|
uses: actions/checkout@v4
|
|
- name: Setup environment
|
|
run: bash ci/scripts/setup-env.sh 9.12.3 20
|
|
- name: Restore repository dependency cache
|
|
id: dependency-cache
|
|
run: python3 ci/scripts/cache.py restore
|
|
env:
|
|
CACHE_TOKEN: ${{ github.token }}
|
|
- name: Install dependencies
|
|
run: pnpm install --frozen-lockfile
|
|
- name: Download Rsbuild Config
|
|
uses: actions/download-artifact@v4
|
|
with:
|
|
name: rsbuild-config-dist-${{ github.run_id }}
|
|
path: packages/rsbuild-config/dist
|
|
- name: Download Storybook Config
|
|
uses: actions/download-artifact@v4
|
|
with:
|
|
name: storybook-config-dist-${{ github.run_id }}
|
|
path: packages/storybook-config/dist
|
|
- name: Download i18n dist
|
|
uses: actions/download-artifact@v4
|
|
with:
|
|
name: i18n-dist-${{ github.run_id }}
|
|
path: packages/i18n/dist
|
|
- name: Test UI package
|
|
run: pnpm --filter @ermnvldmr/ui test:coverage
|
|
build-storybook:
|
|
name: Build - Storybook
|
|
needs: build-configs
|
|
runs-on: apex-debian13
|
|
steps:
|
|
- name: Checkout repository
|
|
uses: actions/checkout@v4
|
|
- name: Setup environment
|
|
run: bash ci/scripts/setup-env.sh 9.12.3 20
|
|
- name: Restore repository dependency cache
|
|
id: dependency-cache
|
|
run: python3 ci/scripts/cache.py restore
|
|
env:
|
|
CACHE_TOKEN: ${{ github.token }}
|
|
- name: Install dependencies
|
|
run: pnpm install --frozen-lockfile
|
|
- name: Download Rsbuild Config
|
|
uses: actions/download-artifact@v4
|
|
with:
|
|
name: rsbuild-config-dist-${{ github.run_id }}
|
|
path: packages/rsbuild-config/dist
|
|
- name: Download Storybook Config
|
|
uses: actions/download-artifact@v4
|
|
with:
|
|
name: storybook-config-dist-${{ github.run_id }}
|
|
path: packages/storybook-config/dist
|
|
- name: Download i18n dist
|
|
uses: actions/download-artifact@v4
|
|
with:
|
|
name: i18n-dist-${{ github.run_id }}
|
|
path: packages/i18n/dist
|
|
- name: Build UI Storybook
|
|
run: pnpm --filter @ermnvldmr/ui build-storybook
|
|
- name: Upload Storybook build
|
|
uses: actions/upload-artifact@v4
|
|
with:
|
|
name: ui-storybook-static-${{ github.run_id }}
|
|
path: packages/ui/storybook-static/
|
|
retention-days: 30
|
|
test-storybook:
|
|
name: Test - Storybook
|
|
needs: build-storybook
|
|
runs-on: apex-debian13
|
|
steps:
|
|
- name: Checkout repository
|
|
uses: actions/checkout@v4
|
|
- name: Setup environment
|
|
run: bash ci/scripts/setup-env.sh 9.12.3 20
|
|
- name: Restore repository dependency cache
|
|
id: dependency-cache
|
|
run: python3 ci/scripts/cache.py restore
|
|
env:
|
|
CACHE_TOKEN: ${{ github.token }}
|
|
- name: Install dependencies
|
|
run: pnpm install --frozen-lockfile
|
|
- name: Download Rsbuild Config
|
|
uses: actions/download-artifact@v4
|
|
with:
|
|
name: rsbuild-config-dist-${{ github.run_id }}
|
|
path: packages/rsbuild-config/dist
|
|
- name: Download Storybook Config
|
|
uses: actions/download-artifact@v4
|
|
with:
|
|
name: storybook-config-dist-${{ github.run_id }}
|
|
path: packages/storybook-config/dist
|
|
- name: Download i18n dist
|
|
uses: actions/download-artifact@v4
|
|
with:
|
|
name: i18n-dist-${{ github.run_id }}
|
|
path: packages/i18n/dist
|
|
- name: Install Playwright browsers
|
|
run: pnpm --filter @ermnvldmr/ui exec playwright install --with-deps chromium
|
|
- name: Download Storybook build
|
|
uses: actions/download-artifact@v4
|
|
with:
|
|
name: ui-storybook-static-${{ github.run_id }}
|
|
path: packages/ui/storybook-static/
|
|
- name: Test Storybook
|
|
run: pnpm --filter @ermnvldmr/ui test:storybook:ci
|
|
build-ui:
|
|
name: Build - UI
|
|
needs: build-configs
|
|
runs-on: apex-debian13
|
|
steps:
|
|
- name: Checkout repository
|
|
uses: actions/checkout@v4
|
|
- name: Setup environment
|
|
run: bash ci/scripts/setup-env.sh 9.12.3 20
|
|
- name: Restore repository dependency cache
|
|
id: dependency-cache
|
|
run: python3 ci/scripts/cache.py restore
|
|
env:
|
|
CACHE_TOKEN: ${{ github.token }}
|
|
- name: Install dependencies
|
|
run: pnpm install --frozen-lockfile
|
|
- name: Download Rsbuild Config
|
|
uses: actions/download-artifact@v4
|
|
with:
|
|
name: rsbuild-config-dist-${{ github.run_id }}
|
|
path: packages/rsbuild-config/dist
|
|
- name: Download Storybook Config
|
|
uses: actions/download-artifact@v4
|
|
with:
|
|
name: storybook-config-dist-${{ github.run_id }}
|
|
path: packages/storybook-config/dist
|
|
- name: Download i18n dist
|
|
uses: actions/download-artifact@v4
|
|
with:
|
|
name: i18n-dist-${{ github.run_id }}
|
|
path: packages/i18n/dist
|
|
- name: Build UI package
|
|
run: pnpm --filter @ermnvldmr/ui build
|