Skip to content

Commit dfc2d7e

Browse files
authored
ci: add vite e2e tests (#5002)
* ci: add `vite` e2e tests * ci: disable `preact-ts`
1 parent 2a9d4f3 commit dfc2d7e

File tree

2 files changed

+88
-1
lines changed

2 files changed

+88
-1
lines changed
+87
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,87 @@
1+
on:
2+
schedule:
3+
- cron: '0 */4 * * *'
4+
push:
5+
branches:
6+
- master
7+
pull_request:
8+
paths:
9+
- .github/actions/prepare/action.yml
10+
- .github/workflows/e2e-vite-workflow.yml
11+
- scripts/e2e-setup-ci.sh
12+
13+
name: 'E2E Vite'
14+
jobs:
15+
chore:
16+
name: 'Validating Vite'
17+
runs-on: ubuntu-latest
18+
19+
steps:
20+
- uses: actions/checkout@v3
21+
22+
- uses: ./.github/actions/prepare
23+
24+
- name: 'Running the integration test (vanilla-ts)'
25+
run: |
26+
source scripts/e2e-setup-ci.sh
27+
28+
yarn create vite vanilla-ts --template vanilla-ts
29+
cd vanilla-ts
30+
yarn
31+
yarn build
32+
33+
- name: 'Running the integration test (vue-ts)'
34+
run: |
35+
source scripts/e2e-setup-ci.sh
36+
37+
yarn create vite vue-ts --template vue-ts
38+
cd vue-ts
39+
yarn
40+
yarn build
41+
if: |
42+
success() || failure()
43+
44+
- name: 'Running the integration test (react-ts)'
45+
run: |
46+
source scripts/e2e-setup-ci.sh
47+
48+
yarn create vite react-ts --template react-ts
49+
cd react-ts
50+
yarn
51+
yarn build
52+
if: |
53+
success() || failure()
54+
55+
# TODO: Enable when the template is PnP compatible
56+
# - name: 'Running the integration test (preact-ts)'
57+
# run: |
58+
# source scripts/e2e-setup-ci.sh
59+
60+
# yarn create vite preact-ts --template preact-ts
61+
# cd preact-ts
62+
# yarn
63+
# yarn build
64+
# if: |
65+
# success() || failure()
66+
67+
- name: 'Running the integration test (lit-ts)'
68+
run: |
69+
source scripts/e2e-setup-ci.sh
70+
71+
yarn create vite lit-ts --template lit-ts
72+
cd lit-ts
73+
yarn
74+
yarn build
75+
if: |
76+
success() || failure()
77+
78+
- name: 'Running the integration test (svelte-ts)'
79+
run: |
80+
source scripts/e2e-setup-ci.sh
81+
82+
yarn create vite svelte-ts --template svelte-ts
83+
cd svelte-ts
84+
yarn
85+
yarn build
86+
if: |
87+
success() || failure()

README.md

+1-1
Original file line numberDiff line numberDiff line change
@@ -146,6 +146,7 @@ On top of our classic integration tests, we also run Yarn every day against the
146146
[![](https://github.com/yarnpkg/berry/workflows/E2E%20Next/badge.svg?event=schedule)](https://github.com/yarnpkg/berry/actions/workflows/e2e-next-workflow.yml)<br/>
147147
[![](https://github.com/yarnpkg/berry/workflows/E2E%20Preact%20CLI/badge.svg?event=schedule)](https://github.com/yarnpkg/berry/actions/workflows/e2e-preact-cli-workflow.yml)<br/>
148148
[![](https://github.com/yarnpkg/berry/workflows/E2E%20SvelteKit/badge.svg?event=schedule)](https://github.com/yarnpkg/berry/actions/workflows/e2e-svelte-kit-workflow.yml)<br/>
149+
[![](https://github.com/yarnpkg/berry/workflows/E2E%20Vite/badge.svg?event=schedule)](https://github.com/yarnpkg/berry/actions/workflows/e2e-vite-workflow.yml)<br/>
149150
</td><td valign="top">
150151

151152
[![](https://github.com/yarnpkg/berry/workflows/E2E%20ESBuild/badge.svg?event=schedule)](https://github.com/yarnpkg/berry/actions/workflows/e2e-esbuild-workflow.yml)<br/>
@@ -243,4 +244,3 @@ The following packages are meant to be used by Yarn itself, and probably won't b
243244

244245
- [@yarnpkg/builder](packages/yarnpkg-builder) contains a CLI tool to package berry and its plugins.
245246
- [@yarnpkg/cli](packages/yarnpkg-cli) is a CLI entry point built on top of [@yarnpkg/core](packages/yarnpkg-core).
246-

0 commit comments

Comments
 (0)