fix: Don't attach alternate links for redirects and consider port of a domain that is being redirected to #2472
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
name: main | |
on: | |
pull_request: | |
types: [opened, synchronize, reopened] | |
jobs: | |
build: | |
name: Build, lint, and test | |
runs-on: macos-15 | |
env: | |
TURBO_TOKEN: ${{ secrets.TURBO_TOKEN }} | |
TURBO_TEAM: ${{ vars.TURBO_TEAM }} | |
TURBO_SCM_BASE: ${{ github.event_name == 'pull_request' && (github.event.pull_request.base.sha || github.event.before) }} | |
steps: | |
# General setup | |
- uses: actions/checkout@v4 | |
with: | |
fetch-depth: 0 # For Turborepo | |
- uses: pnpm/action-setup@v4 | |
- uses: actions/setup-node@v4 | |
with: | |
node-version: 20.x | |
cache: 'pnpm' | |
- run: pnpm install | |
# Next.js caching | |
- uses: actions/cache@v4 | |
with: | |
path: | | |
${{ github.workspace }}/examples/*/.next/cache | |
${{ github.workspace }}/docs/.next/cache | |
key: ${{ runner.os }}-nextjs-${{ hashFiles('pnpm-lock.yaml') }} | |
# Playwright (incl. caching) | |
- id: playwright-version | |
run: | | |
version=$(pnpm --filter example-app-router exec playwright --version | awk '{print $2}') | |
echo "version=$version" >> "$GITHUB_OUTPUT" | |
- uses: actions/cache@v4 | |
id: playwright-cache | |
with: | |
path: ~/.cache/ms-playwright | |
key: ${{ runner.os }}-playwright-${{ steps.playwright-version.outputs.version }} | |
- run: pnpm --filter example-app-router exec playwright install --with-deps | |
if: steps.playwright-cache.outputs.cache-hit != 'true' | |
# Main tasks | |
- run: pnpm turbo run lint build test size --affected |