-
Notifications
You must be signed in to change notification settings - Fork 166
162 lines (145 loc) · 5.47 KB
/
e2e-test.yml
File metadata and controls
162 lines (145 loc) · 5.47 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
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
name: E2E Test
permissions: {}
on:
workflow_dispatch:
push:
branches:
- main
- deps/upstream-update
paths-ignore:
- '**/*.md'
pull_request:
paths:
- 'ecosystem-ci/**'
- '.github/workflows/e2e-test.yml'
concurrency:
group: ${{ github.workflow }}-${{ github.sha }}
cancel-in-progress: ${{ github.ref_name != 'main' }}
defaults:
run:
shell: bash
jobs:
download-previous-rolldown-binaries:
runs-on: ubuntu-latest
permissions:
contents: read
packages: read
steps:
- uses: actions/checkout@11bd71901bbe5b1630ceea73d27597364c9af683 # v4.2.2
- uses: ./.github/actions/download-rolldown-binaries
with:
github-token: ${{ secrets.GITHUB_TOKEN }}
e2e-test:
name: ${{ matrix.project.name }} E2E test
env:
# For packing manager install from github package registry
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
permissions:
contents: read
packages: read
needs:
- download-previous-rolldown-binaries
runs-on: ubuntu-latest
timeout-minutes: 10
strategy:
fail-fast: false
matrix:
project:
- name: vibe-dashboard
node-version: 24
command: |
npx playwright install chromium
# FIXME: Failed to load JS plugin: ./plugins/debugger.js
# vite run ready
vite fmt
vite test
vite run build
# FIXME: TypeError: Failed to fetch dynamically imported module
# - name: skeleton
# node-version: 24
# command: |
# vite run format
# vite run lint:check
# vite run check
# pnpm exec playwright install chromium
# vite run test
- name: rollipop
node-version: 22
command: |
vite run -r build
# FIXME: typescript-eslint(no-redundant-type-constituents): 'rolldownExperimental.DevEngine' is an 'error' type that acts as 'any' and overrides all other types in this union type.
vite run lint || true
# FIXME: src/bundler-pool.ts(8,8): error TS2307: Cannot find module '@rollipop/core' or its corresponding type declarations.
vite run -r typecheck || true
vite run format
vite run @rollipop/common#test
vite run @rollipop/core#test
vite run @rollipop/dev-server#test
- name: frm-stack
node-version: 24
command: |
vite run lint:check
vite run format:check
vite run typecheck
vite run @yourcompany/api#test
vite run @yourcompany/backend-core#test
- name: vue-mini
node-version: 24
command: |
vite run format
vite run lint
vite run type
vite run test -- --coverage
- name: vite-plugin-react
node-version: 22
command: |
vite run format
vite run lint -- --fix
# TODO(fengmk2): run all builds and tests after tsdown version upgrade
vite run @vitejs/plugin-rsc#build
vite run @vitejs/plugin-rsc#test
steps:
- uses: actions/checkout@11bd71901bbe5b1630ceea73d27597364c9af683 # v4.2.2
- uses: ./.github/actions/clone
with:
ecosystem-ci-project: ${{ matrix.project.name }}
- name: Configure Git for access to vite-task
run: git config --global url."https://x-access-token:${{ secrets.VITE_TASK_TOKEN }}@github.com/".insteadOf "https://github.com/"
- uses: oxc-project/setup-rust@d286d43bc1f606abbd98096666ff8be68c8d5f57 # v1.0.0
with:
save-cache: ${{ github.ref_name == 'main' }}
cache-key: e2e-test
- uses: oxc-project/setup-node@fdbf0dfd334c4e6d56ceeb77d91c76339c2a0885 # v1.0.4
- uses: actions/download-artifact@d3f86a106a0bac45b974a628896c90dbdf5c8093 # v4.3.0
with:
name: rolldown-binaries
path: ./rolldown/packages/rolldown/src
merge-multiple: true
- name: Build with upstream
uses: ./.github/actions/build-upstream
with:
target: x86_64-unknown-linux-gnu
- name: Build all packages
run: pnpm bootstrap-cli:ci
- name: Pack packages into tgz
run: |
mkdir -p tmp/tgz
cd packages/core && pnpm pack --pack-destination ../../tmp/tgz && cd ../..
cd packages/test && pnpm pack --pack-destination ../../tmp/tgz && cd ../..
cd packages/cli && pnpm pack --pack-destination ../../tmp/tgz && cd ../..
cd packages/global && pnpm pack --pack-destination ../../tmp/tgz && cd ../..
ls -la tmp/tgz
- uses: actions/setup-node@a0853c24544627f65ddf259abe73b1d18a591444 # v5
with:
node-version: ${{ matrix.project.node-version }}
package-manager-cache: false
- name: Install vite-plus from tgz in ${{ matrix.project.name }}
working-directory: ecosystem-ci/${{ matrix.project.name }}
run: |
# avoid the vite migration using the wrong ignore file
rm -f ../.gitignore
node ../patch-project.ts ${{ matrix.project.name }}
vite install --no-frozen-lockfile
- name: Run vite-plus commands in ${{ matrix.project.name }}
working-directory: ecosystem-ci/${{ matrix.project.name }}
run: ${{ matrix.project.command }}