Skip to content
This repository has been archived by the owner on Feb 10, 2025. It is now read-only.

Commit

Permalink
Merge branch 'main' into include-files
Browse files Browse the repository at this point in the history
  • Loading branch information
ascorbic committed Sep 4, 2024
2 parents d68f5b2 + 8274001 commit 5570bdf
Show file tree
Hide file tree
Showing 301 changed files with 12,389 additions and 2,600 deletions.
5 changes: 0 additions & 5 deletions .changeset/ten-chicken-provide.md

This file was deleted.

7 changes: 0 additions & 7 deletions .eslintignore

This file was deleted.

65 changes: 0 additions & 65 deletions .eslintrc.cjs

This file was deleted.

12 changes: 0 additions & 12 deletions .github/renovate.json

This file was deleted.

25 changes: 25 additions & 0 deletions .github/renovate.json5
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",
],
}
4 changes: 2 additions & 2 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -107,12 +107,12 @@ jobs:
strategy:
matrix:
OS: [ubuntu-latest]
NODE_VERSION: [18, 20.5.1]
NODE_VERSION: [18, 20]
include:
- os: macos-latest
NODE_VERSION: 18
- os: windows-latest
NODE_VERSION: 18.17.1
NODE_VERSION: 18
fail-fast: false
env:
NODE_VERSION: ${{ matrix.NODE_VERSION }}
Expand Down
135 changes: 135 additions & 0 deletions .github/workflows/event-dispatch.yml
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
3 changes: 2 additions & 1 deletion biome.json
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,8 @@
"**/fixtures",
"**/vendor",
"**/.vercel",
"**/.changeset"
"**/.changeset",
"**/.turbo"
],
"ignoreUnknown": true
},
Expand Down
Loading

0 comments on commit 5570bdf

Please sign in to comment.