This repository has been archived by the owner on Feb 10, 2025. It is now read-only.
-
-
Notifications
You must be signed in to change notification settings - Fork 52
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge branch 'main' into include-files
- Loading branch information
Showing
301 changed files
with
12,389 additions
and
2,600 deletions.
There are no files selected for viewing
This file was deleted.
Oops, something went wrong.
This file was deleted.
Oops, something went wrong.
This file was deleted.
Oops, something went wrong.
This file was deleted.
Oops, something went wrong.
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,25 @@ | ||
{ | ||
"$schema": "https://docs.renovatebot.com/renovate-schema.json", | ||
"extends": [ | ||
"config:recommended", | ||
"schedule:weekly", | ||
"group:allNonMajor", | ||
":disablePeerDependencies", | ||
"regexManagers:biomeVersions" | ||
], | ||
"labels": ["dependencies"], | ||
"rangeStrategy": "bump", | ||
"postUpdateOptions": ["pnpmDedupe"], | ||
"ignorePaths": ["**/node_modules/**"], | ||
"ignoreDeps": [ | ||
// ignore "engines" update | ||
"node", | ||
"pnpm", | ||
|
||
// need further upgrade investigation | ||
"@netlify/functions", | ||
|
||
// follow astro deps version | ||
"esbuild", | ||
], | ||
} |
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
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,135 @@ | ||
name: Event dispatch | ||
on: | ||
workflow_dispatch: | ||
inputs: | ||
commit-id: | ||
description: Commit ID of withastro/astro | ||
required: true | ||
type: string | ||
repository_dispatch: | ||
types: [astro-push-main-event] | ||
|
||
permissions: | ||
actions: write | ||
contents: write | ||
pull-requests: write | ||
|
||
concurrency: | ||
group: ${{ github.workflow }}-${{ github.ref }} | ||
cancel-in-progress: true | ||
|
||
jobs: | ||
synchronize: | ||
runs-on: ubuntu-latest | ||
steps: | ||
- name: Get commit ID (workflow dispatch, empty) | ||
if: ${{ github.event_name == 'workflow_dispatch' && github.event.inputs.commit-id == '' }} | ||
run: echo "You must provide a full commit ID." && exit 1 | ||
|
||
- name: Get commit ID (workflow dispatch, non-empty) | ||
if: ${{ github.event_name == 'workflow_dispatch' && github.event.inputs.commit-id != '' }} | ||
run: echo "COMMIT_ID=${{ github.event.inputs.commit-id }}" >> $GITHUB_ENV | ||
|
||
- name: Get commit ID (repository dispatch) | ||
if: ${{ github.event_name == 'repository_dispatch'}} | ||
run: echo "COMMIT_ID=${{ github.event.client_payload.event.head_commit.id }}" >> "$GITHUB_ENV" | ||
|
||
- name: Get short commit ID | ||
run: echo "SHORT_COMMIT_ID=$(echo ${{ env.COMMIT_ID }} | cut -c 1-7)" >> "$GITHUB_ENV" | ||
|
||
test_cloudflare: | ||
runs-on: ubuntu-latest | ||
needs: synchronize | ||
steps: | ||
- name: Disable git crlf | ||
run: git config --global core.autocrlf false | ||
|
||
- name: Checkout | ||
uses: actions/checkout@v4 | ||
|
||
- name: Setup PNPM | ||
uses: pnpm/action-setup@v3 | ||
|
||
- name: Setup Node | ||
uses: actions/setup-node@v4 | ||
with: | ||
node-version: 20 | ||
cache: "pnpm" | ||
|
||
- name: Checkout Astro repository | ||
uses: actions/checkout@v4 | ||
with: | ||
repository: withastro/astro | ||
ref: ${{ env.COMMIT_ID }} | ||
path: astro | ||
|
||
- name: Compile and link Astro | ||
working-directory: astro | ||
run: | | ||
pnpm install | ||
pnpm run build | ||
- name: Install dependencies | ||
run: | | ||
pnpm install | ||
- name: Build | ||
working-directory: packages/cloudflare | ||
run: | | ||
pnpm link ../../astro/packages/astro | ||
pnpm run build | ||
continue-on-error: true | ||
|
||
- name: Test | ||
run: | | ||
pnpm run test | ||
|
||
test_netlify: | ||
runs-on: ubuntu-latest | ||
needs: synchronize | ||
steps: | ||
- name: Disable git crlf | ||
run: git config --global core.autocrlf false | ||
|
||
- name: Checkout | ||
uses: actions/checkout@v4 | ||
|
||
- name: Setup PNPM | ||
uses: pnpm/action-setup@v3 | ||
|
||
- name: Setup Node | ||
uses: actions/setup-node@v4 | ||
with: | ||
node-version: 20 | ||
cache: "pnpm" | ||
|
||
- name: Checkout Astro repository | ||
uses: actions/checkout@v4 | ||
with: | ||
repository: withastro/astro | ||
ref: ${{ env.COMMIT_ID }} | ||
path: astro | ||
|
||
- name: Compile and link Astro | ||
working-directory: astro | ||
run: | | ||
pnpm install | ||
pnpm run build | ||
- name: Install dependencies | ||
run: | | ||
pnpm install | ||
- name: Build | ||
working-directory: packages/netlify | ||
run: | | ||
pnpm link ../../astro/packages/astro | ||
pnpm run build | ||
continue-on-error: true | ||
|
||
- name: Test | ||
run: | | ||
pnpm run test | ||
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
Oops, something went wrong.