Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
5 changes: 5 additions & 0 deletions .github/workflows/build.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -144,6 +144,11 @@ jobs:
path: packages/editor/playwright-report/
retention-days: 30

# Upload webpack-stats.json to use on relative-ci.yaml workflow
- name: Upload webpack stats artifact
uses: relative-ci/agent-upload-artifact-action@v1
with:
webpackStatsFile: ./packages/editor/dist/webpack-stats.json
# - name: Upload to coveralls
# uses: coverallsapp/github-action@master
# with:
Expand Down
17 changes: 17 additions & 0 deletions .github/workflows/relative-ci.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,17 @@
name: RelativeCI

on:
workflow_run:
workflows: ["build"]
types:
- completed

jobs:
build:
runs-on: ubuntu-latest
steps:
- name: Send bundle stats and build information to RelativeCI
uses: relative-ci/agent-action@v2
with:
key: ${{ secrets.RELATIVE_CI_KEY }}
token: ${{ secrets.GITHUB_TOKEN }}
33 changes: 27 additions & 6 deletions package-lock.json

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

3 changes: 2 additions & 1 deletion packages/editor/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -173,6 +173,7 @@
"rollup-plugin-node-polyfills": "^0.2.1",
"rollup-plugin-polyfill-node": "^0.12.0",
"vite": "^4.4.2",
"vitest": "^0.33.0"
"vitest": "^0.33.0",
"rollup-plugin-webpack-stats": "^0.2.0"
}
}
3 changes: 2 additions & 1 deletion packages/editor/vite.config.ts
Original file line number Diff line number Diff line change
@@ -1,6 +1,7 @@
import react from "@vitejs/plugin-react";
import history from "connect-history-api-fallback";
import nodePolyfills from "rollup-plugin-polyfill-node";
import { webpackStats } from "rollup-plugin-webpack-stats";
import { ViteDevServer } from "vite";
import { defineConfig } from "vitest/config";

Expand Down Expand Up @@ -34,7 +35,7 @@ export default defineConfig({
// global: "globalThis", // breaks some modules work because of https://github.com/vitejs/vite/issues/6295, done in index.tsx instead
// process & buffer are added to global scope in index.host.tsx
},
plugins: [react(), redirectAll()],
plugins: [react(), redirectAll(), webpackStats()],
resolve: {
alias: {
buffer: "rollup-plugin-node-polyfills/polyfills/buffer-es6",
Expand Down