Skip to content

[DRAFT] feat!: server-side localized redirection #9895

[DRAFT] feat!: server-side localized redirection

[DRAFT] feat!: server-side localized redirection #9895

Workflow file for this run

---
name: CI
env:
CI: true
on:
push:
branches:
- next
paths-ignore:
- 'docs/**'
pull_request:
branches:
- next
paths-ignore:
- 'docs/**'
jobs:
lint:
runs-on: ${{ matrix.os }}
strategy:
matrix:
node-version: [lts/*]
os: [ubuntu-latest]
timeout-minutes: 10
steps:
- name: Checkout codes
uses: actions/checkout@v4
- name: Setup pnpm
uses: pnpm/action-setup@a7487c7e89a18df4991f7f222e4898a00d66ddda # v4.1.0
- name: Setup node
uses: actions/setup-node@v4
with:
node-version: ${{ matrix.node-version }}
cache: 'pnpm'
- name: Install dependencies
run: pnpm install --frozen-lockfile
- name: Building
run: pnpm build
- name: Linting
run: pnpm lint
build:
runs-on: ${{ matrix.os }}
strategy:
matrix:
node-version: [lts/*]
os: [ubuntu-latest]
timeout-minutes: 10
steps:
- name: Checkout codes
uses: actions/checkout@v4
- name: Setup pnpm
uses: pnpm/action-setup@a7487c7e89a18df4991f7f222e4898a00d66ddda # v4.1.0
- name: Setup node
uses: actions/setup-node@v4
with:
node-version: ${{ matrix.node-version }}
cache: 'pnpm'
- name: Install dependencies
run: pnpm install --frozen-lockfile
- name: Building
run: pnpm build
- name: Cache dist
uses: actions/cache@v4
with:
path: dist
key: ${{ matrix.os }}-node-v${{ matrix.node-version }}-${{ github.sha }}
test:
needs:
- build
runs-on: ${{ matrix.os }}
strategy:
matrix:
node-version: [lts/*]
os: [ubuntu-latest, windows-latest]
timeout-minutes: 25
steps:
- name: Checkout codes
uses: actions/checkout@v4
- name: Setup pnpm
uses: pnpm/action-setup@a7487c7e89a18df4991f7f222e4898a00d66ddda # v4.1.0
- name: Setup node
uses: actions/setup-node@v4
with:
node-version: ${{ matrix.node-version }}
cache: 'pnpm'
- name: Install dependencies
run: pnpm install --frozen-lockfile
- name: Install Playwright
run: pnpm playwright-core install chromium
- name: Restore dist cache
uses: actions/cache@v4
with:
path: dist
key: ${{ matrix.os }}-node-v${{ matrix.node-version }}-${{ github.sha }}
- name: Testing
run: pnpm test
edge-release:
needs:
- lint
- build
- test
runs-on: ${{ matrix.os }}
strategy:
matrix:
node-version: [lts/*]
os: [ubuntu-latest]
steps:
- name: Checkout codes
uses: actions/checkout@v4
- name: Setup pnpm
uses: pnpm/action-setup@a7487c7e89a18df4991f7f222e4898a00d66ddda # v4.1.0
- name: Setup node
uses: actions/setup-node@v4
with:
node-version: ${{ matrix.node-version }}
cache: 'pnpm'
- name: Install dependencies
run: pnpm install --frozen-lockfile
- name: Restore dist cache
uses: actions/cache@v4
with:
path: dist
key: ${{ matrix.os }}-node-v${{ matrix.node-version }}-${{ github.sha }}
- name: Release Edge
if: |
github.event_name == 'push' &&
!startsWith(github.event.head_commit.message, '[skip-release]') &&
!startsWith(github.event.head_commit.message, 'chore') &&
!startsWith(github.event.head_commit.message, 'docs')
run: ./scripts/release-edge.sh
env:
NPM_TOKEN: ${{secrets.NPM_TOKEN}}