Skip to content

Commit a3158ed

Browse files
authored
feat: run with rolldown-vite regularly (#379)
* feat: run against rolldown-vite regularly * chore: show repo text for rolldown-vite repo
1 parent 13801d3 commit a3158ed

File tree

1 file changed

+116
-0
lines changed

1 file changed

+116
-0
lines changed
Lines changed: 116 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,116 @@
1+
# integration tests for vite ecosystem projects - scheduled or manual run for all suites
2+
name: vite-ecosystem-ci (rolldown-vite)
3+
4+
env:
5+
# 7 GiB by default on GitHub, setting to 6 GiB
6+
# https://docs.github.com/en/actions/using-github-hosted-runners/about-github-hosted-runners#supported-runners-and-hardware-resources
7+
NODE_OPTIONS: --max-old-space-size=6144
8+
# configure corepack to be strict but not download newer versions or change anything
9+
COREPACK_DEFAULT_TO_LATEST: 0
10+
COREPACK_ENABLE_AUTO_PIN: 0
11+
COREPACK_ENABLE_STRICT: 1
12+
# see https://turbo.build/repo/docs/telemetry#how-do-i-opt-out
13+
TURBO_TELEMETRY_DISABLED: 1
14+
DO_NOT_TRACK: 1
15+
on:
16+
schedule:
17+
- cron: "0 5 * * 2,4" # tuesday,thursday 5AM
18+
workflow_dispatch:
19+
inputs:
20+
refType:
21+
description: "type of ref"
22+
required: true
23+
type: choice
24+
options:
25+
- branch
26+
- tag
27+
- commit
28+
- release
29+
default: "branch"
30+
ref:
31+
description: "vite ref to use"
32+
required: true
33+
type: string
34+
default: "rolldown-vite"
35+
repo:
36+
description: "vite repository to use"
37+
required: true
38+
type: string
39+
default: "vitejs/rolldown-vite"
40+
repository_dispatch:
41+
types: [ecosystem-ci]
42+
jobs:
43+
test-ecosystem:
44+
timeout-minutes: 30
45+
runs-on: ubuntu-latest
46+
strategy:
47+
matrix:
48+
suite:
49+
- analogjs
50+
- astro
51+
- histoire
52+
# - hydrogen # disabled until they complete they migration back to Vite
53+
# - iles # disabled until its CI is fixed
54+
- ladle
55+
- laravel
56+
- marko
57+
- nuxt
58+
- one
59+
# - nx # disabled temporarily
60+
- previewjs
61+
- quasar
62+
- qwik
63+
- rakkas
64+
- react-router
65+
# - redwoodjs # disabled temporarily
66+
- storybook
67+
- sveltekit
68+
- unocss
69+
- vike
70+
- vite-environment-examples
71+
- vite-plugin-pwa
72+
- vite-plugin-react
73+
# - vite-plugin-react-pages # disabled until its install setup is fixed
74+
- vite-plugin-react-swc
75+
- vite-plugin-svelte
76+
- vite-plugin-vue
77+
- vite-plugin-cloudflare
78+
- vite-setup-catalogue
79+
- vitepress
80+
- vitest
81+
- vuepress
82+
- waku
83+
fail-fast: false
84+
permissions:
85+
contents: read # to clone the repo
86+
steps:
87+
- uses: actions/checkout@v4
88+
- uses: actions/setup-node@v4
89+
with:
90+
node-version: ^22.14.0
91+
id: setup-node
92+
- uses: denoland/setup-deno@11b63cf76cfcafb4e43f97b6cad24d8e8438f62d #v1.5.2
93+
with:
94+
deno-version: v1.x
95+
id: setup-deno
96+
continue-on-error: true
97+
- run: corepack enable
98+
- run: pnpm --version
99+
- run: pnpm i --frozen-lockfile
100+
- run: >-
101+
pnpm tsx ecosystem-ci.ts
102+
--${{ inputs.refType || github.event.client_payload.refType || 'branch' }} ${{ inputs.ref || github.event.client_payload.ref || 'rolldown-vite' }}
103+
--repo ${{ inputs.repo || github.event.client_payload.repo || 'vitejs/rolldown-vite' }}
104+
${{ matrix.suite }}
105+
id: ecosystem-ci-run
106+
- if: always()
107+
run: pnpm tsx discord-webhook.ts
108+
env:
109+
WORKFLOW_NAME: ci
110+
REF_TYPE: ${{ inputs.refType || github.event.client_payload.refType || 'branch' }}
111+
REF: ${{ inputs.ref || github.event.client_payload.ref || 'main' }}
112+
REPO: ${{ inputs.repo || github.event.client_payload.repo || 'vitejs/vite' }}
113+
SUITE: ${{ matrix.suite }}
114+
STATUS: ${{ job.status }}
115+
DISCORD_WEBHOOK_URL: ${{ secrets.DISCORD_WEBHOOK_URL_ROLLDOWN_VITE }}
116+
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}

0 commit comments

Comments
 (0)