forked from vitejs/vite-ecosystem-ci
-
Notifications
You must be signed in to change notification settings - Fork 0
131 lines (130 loc) · 3.96 KB
/
Copy pathecosystem-ci-selected.yml
File metadata and controls
131 lines (130 loc) · 3.96 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
# integration tests for vite ecosystem - single run of selected testsuite
name: vite-ecosystem-ci-selected
env:
# 7 GiB by default on GitHub, setting to 6 GiB
# https://docs.github.com/en/actions/using-github-hosted-runners/about-github-hosted-runners#supported-runners-and-hardware-resources
NODE_OPTIONS: --max-old-space-size=6144
# configure corepack to be strict but not download newer versions or change anything
COREPACK_DEFAULT_TO_LATEST: 0
COREPACK_ENABLE_AUTO_PIN: 0
COREPACK_ENABLE_STRICT: 1
# see https://turbo.build/repo/docs/telemetry#how-do-i-opt-out
TURBO_TELEMETRY_DISABLED: 1
DO_NOT_TRACK: 1
on:
workflow_dispatch:
inputs:
refType:
description: "type of vite ref to use"
required: true
type: choice
options:
- branch
- tag
- commit
- release
default: "branch"
ref:
description: "vite ref to use"
required: true
type: string
default: "main"
repo:
description: "vite repository to use"
required: true
type: string
default: "vitejs/vite"
vite_plugin_react_ref:
description: "vite-plugin-react ref to use"
type: string
vite_plugin_react_repo:
description: "vite-plugin-react repository to use"
type: string
rolldownRef:
description: "rolldown commit sha to use from pkg.pr.new"
type: string
suite:
description: "testsuite to run"
required: true
type: choice
options:
- analogjs
- astro
- histoire
- hydrogen
- iles
- ladle
- laravel
- marko
- module-federation
- nuxt
- nx
# - one # disabled until we figured out how to support bun
- quasar
- qwik
- rakkas
- react-router
- redwoodjs
- storybook
- sveltekit
- tanstack-start
- unocss
- vike
- vite-environment-examples
- vite-plugin-pwa
- vite-plugin-react
- vite-plugin-svelte
- vite-plugin-vue
- vite-plugin-cloudflare
- vite-plugin-rsc
- vite-setup-catalogue
- vitepress
- vitest
- vuepress
- waku
sendDiscordReport:
description: "send results to discord"
type: boolean
jobs:
execute-selected-suite:
timeout-minutes: 30
runs-on: ubuntu-latest
permissions:
contents: read # to clone the repo
steps:
- uses: actions/checkout@3d3c42e5aac5ba805825da76410c181273ba90b1 # v7
with:
persist-credentials: false
- uses: actions/setup-node@820762786026740c76f36085b0efc47a31fe5020 # v7
with:
node-version: 24.19.0
id: setup-node
- run: corepack enable
- run: pnpm --version
- run: pnpm i --frozen-lockfile
- run: >-
node ecosystem-ci.ts
"--$REF_TYPE" "$REF"
--repo "$REPO"
${ROLLDOWN_REF:+--rolldown-ref "$ROLLDOWN_REF"}
"$SUITE"
id: ecosystem-ci-run
env:
REF_TYPE: ${{ inputs.refType }}
REF: ${{ inputs.ref }}
REPO: ${{ inputs.repo }}
ROLLDOWN_REF: ${{ inputs.rolldownRef }}
SUITE: ${{ inputs.suite }}
VITE_PLUGIN_REACT_REF: ${{ inputs.vite_plugin_react_ref }}
VITE_PLUGIN_REACT_REPO: ${{ inputs.vite_plugin_react_repo }}
- if: always() && (inputs.sendDiscordReport || github.event_name != 'workflow_dispatch')
run: node discord-webhook.ts
env:
WORKFLOW_NAME: ci-selected
REF_TYPE: ${{ inputs.refType }}
REF: ${{ inputs.ref }}
REPO: ${{ inputs.repo }}
SUITE: ${{ inputs.suite }}
STATUS: ${{ job.status }}
DISCORD_WEBHOOK_URL: ${{ secrets.DISCORD_WEBHOOK_URL }}
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}