mirror of
https://github.com/toeverything/AFFiNE.git
synced 2026-02-11 20:08:37 +00:00
This PR contains the following updates: | Package | Change | Age | Adoption | Passing | Confidence | Type | Update | |---|---|---|---|---|---|---|---| | [@aws-sdk/client-s3](https://redirect.github.com/aws/aws-sdk-js-v3/tree/main/clients/client-s3) ([source](https://redirect.github.com/aws/aws-sdk-js-v3/tree/HEAD/clients/client-s3)) | [`3.645.0` -> `3.651.0`](https://renovatebot.com/diffs/npm/@aws-sdk%2fclient-s3/3.645.0/3.651.0) | [](https://docs.renovatebot.com/merge-confidence/) | [](https://docs.renovatebot.com/merge-confidence/) | [](https://docs.renovatebot.com/merge-confidence/) | [](https://docs.renovatebot.com/merge-confidence/) | devDependencies | minor | | [@aws-sdk/client-s3](https://redirect.github.com/aws/aws-sdk-js-v3/tree/main/clients/client-s3) ([source](https://redirect.github.com/aws/aws-sdk-js-v3/tree/HEAD/clients/client-s3)) | [`3.645.0` -> `3.651.0`](https://renovatebot.com/diffs/npm/@aws-sdk%2fclient-s3/3.645.0/3.651.0) | [](https://docs.renovatebot.com/merge-confidence/) | [](https://docs.renovatebot.com/merge-confidence/) | [](https://docs.renovatebot.com/merge-confidence/) | [](https://docs.renovatebot.com/merge-confidence/) | dependencies | minor | | [@chromatic-com/storybook](https://redirect.github.com/chromaui/addon-visual-tests) | [`1.8.0` -> `1.9.0`](https://renovatebot.com/diffs/npm/@chromatic-com%2fstorybook/1.8.0/1.9.0) | [](https://docs.renovatebot.com/merge-confidence/) | [](https://docs.renovatebot.com/merge-confidence/) | [](https://docs.renovatebot.com/merge-confidence/) | [](https://docs.renovatebot.com/merge-confidence/) | devDependencies | minor | | [@commitlint/cli](https://commitlint.js.org/) ([source](https://redirect.github.com/conventional-changelog/commitlint/tree/HEAD/@commitlint/cli)) | [`19.4.1` -> `19.5.0`](https://renovatebot.com/diffs/npm/@commitlint%2fcli/19.4.1/19.5.0) | [](https://docs.renovatebot.com/merge-confidence/) | [](https://docs.renovatebot.com/merge-confidence/) | [](https://docs.renovatebot.com/merge-confidence/) | [](https://docs.renovatebot.com/merge-confidence/) | devDependencies | minor | | [@commitlint/config-conventional](https://commitlint.js.org/) ([source](https://redirect.github.com/conventional-changelog/commitlint/tree/HEAD/@commitlint/config-conventional)) | [`19.4.1` -> `19.5.0`](https://renovatebot.com/diffs/npm/@commitlint%2fconfig-conventional/19.4.1/19.5.0) | [](https://docs.renovatebot.com/merge-confidence/) | [](https://docs.renovatebot.com/merge-confidence/) | [](https://docs.renovatebot.com/merge-confidence/) | [](https://docs.renovatebot.com/merge-confidence/) | devDependencies | minor | | [@marsidev/react-turnstile](https://redirect.github.com/marsidev/react-turnstile) | [`1.0.1` -> `1.0.2`](https://renovatebot.com/diffs/npm/@marsidev%2freact-turnstile/1.0.1/1.0.2) | [](https://docs.renovatebot.com/merge-confidence/) | [](https://docs.renovatebot.com/merge-confidence/) | [](https://docs.renovatebot.com/merge-confidence/) | [](https://docs.renovatebot.com/merge-confidence/) | dependencies | patch | | [@nx/vite](https://nx.dev) ([source](https://redirect.github.com/nrwl/nx/tree/HEAD/packages/vite)) | [`19.6.5` -> `19.7.3`](https://renovatebot.com/diffs/npm/@nx%2fvite/19.6.5/19.7.3) | [](https://docs.renovatebot.com/merge-confidence/) | [](https://docs.renovatebot.com/merge-confidence/) | [](https://docs.renovatebot.com/merge-confidence/) | [](https://docs.renovatebot.com/merge-confidence/) | devDependencies | minor | | [@playwright/test](https://playwright.dev) ([source](https://redirect.github.com/microsoft/playwright)) | [`=1.46.1` -> `=1.47.0`](https://renovatebot.com/diffs/npm/@playwright%2ftest/1.46.1/1.47.0) | [](https://docs.renovatebot.com/merge-confidence/) | [](https://docs.renovatebot.com/merge-confidence/) | [](https://docs.renovatebot.com/merge-confidence/) | [](https://docs.renovatebot.com/merge-confidence/) | devDependencies | minor | | [@sentry/react](https://redirect.github.com/getsentry/sentry-javascript/tree/master/packages/react) ([source](https://redirect.github.com/getsentry/sentry-javascript)) | [`8.28.0` -> `8.30.0`](https://renovatebot.com/diffs/npm/@sentry%2freact/8.28.0/8.30.0) | [](https://docs.renovatebot.com/merge-confidence/) | [](https://docs.renovatebot.com/merge-confidence/) | [](https://docs.renovatebot.com/merge-confidence/) | [](https://docs.renovatebot.com/merge-confidence/) | dependencies | minor | | [@sentry/react](https://redirect.github.com/getsentry/sentry-javascript/tree/master/packages/react) ([source](https://redirect.github.com/getsentry/sentry-javascript)) | [`8.28.0` -> `8.30.0`](https://renovatebot.com/diffs/npm/@sentry%2freact/8.28.0/8.30.0) | [](https://docs.renovatebot.com/merge-confidence/) | [](https://docs.renovatebot.com/merge-confidence/) | [](https://docs.renovatebot.com/merge-confidence/) | [](https://docs.renovatebot.com/merge-confidence/) | devDependencies | minor | | [@slack/web-api](https://slack.dev/node-slack-sdk/web-api) ([source](https://redirect.github.com/slackapi/node-slack-sdk)) | [`7.3.4` -> `7.4.0`](https://renovatebot.com/diffs/npm/@slack%2fweb-api/7.3.4/7.4.0) | [](https://docs.renovatebot.com/merge-confidence/) | [](https://docs.renovatebot.com/merge-confidence/) | [](https://docs.renovatebot.com/merge-confidence/) | [](https://docs.renovatebot.com/merge-confidence/) | dependencies | minor | | [@storybook/addon-actions](https://redirect.github.com/storybookjs/storybook/tree/next/code/addons/actions) ([source](https://redirect.github.com/storybookjs/storybook/tree/HEAD/code/addons/actions)) | [`8.2.9` -> `8.3.0`](https://renovatebot.com/diffs/npm/@storybook%2faddon-actions/8.2.9/8.3.0) | [](https://docs.renovatebot.com/merge-confidence/) | [](https://docs.renovatebot.com/merge-confidence/) | [](https://docs.renovatebot.com/merge-confidence/) | [](https://docs.renovatebot.com/merge-confidence/) | devDependencies | minor | | [@storybook/addon-essentials](https://redirect.github.com/storybookjs/storybook/tree/next/code/addons/essentials) ([source](https://redirect.github.com/storybookjs/storybook/tree/HEAD/code/addons/essentials)) | [`8.2.9` -> `8.3.0`](https://renovatebot.com/diffs/npm/@storybook%2faddon-essentials/8.2.9/8.3.0) | [](https://docs.renovatebot.com/merge-confidence/) | [](https://docs.renovatebot.com/merge-confidence/) | [](https://docs.renovatebot.com/merge-confidence/) | [](https://docs.renovatebot.com/merge-confidence/) | devDependencies | minor | | [@storybook/addon-interactions](https://redirect.github.com/storybookjs/storybook/tree/next/code/addons/interactions) ([source](https://redirect.github.com/storybookjs/storybook/tree/HEAD/code/addons/interactions)) | [`8.2.9` -> `8.3.0`](https://renovatebot.com/diffs/npm/@storybook%2faddon-interactions/8.2.9/8.3.0) | [](https://docs.renovatebot.com/merge-confidence/) | [](https://docs.renovatebot.com/merge-confidence/) | [](https://docs.renovatebot.com/merge-confidence/) | [](https://docs.renovatebot.com/merge-confidence/) | devDependencies | minor | | [@storybook/addon-links](https://redirect.github.com/storybookjs/storybook/tree/next/code/addons/links) ([source](https://redirect.github.com/storybookjs/storybook/tree/HEAD/code/addons/links)) | [`8.2.9` -> `8.3.0`](https://renovatebot.com/diffs/npm/@storybook%2faddon-links/8.2.9/8.3.0) | [](https://docs.renovatebot.com/merge-confidence/) | [](https://docs.renovatebot.com/merge-confidence/) | [](https://docs.renovatebot.com/merge-confidence/) | [](https://docs.renovatebot.com/merge-confidence/) | devDependencies | minor | | [@storybook/addon-mdx-gfm](https://redirect.github.com/storybookjs/storybook/tree/next/code/addons/gfm) ([source](https://redirect.github.com/storybookjs/storybook/tree/HEAD/code/addons/gfm)) | [`8.2.9` -> `8.3.0`](https://renovatebot.com/diffs/npm/@storybook%2faddon-mdx-gfm/8.2.9/8.3.0) | [](https://docs.renovatebot.com/merge-confidence/) | [](https://docs.renovatebot.com/merge-confidence/) | [](https://docs.renovatebot.com/merge-confidence/) | [](https://docs.renovatebot.com/merge-confidence/) | devDependencies | minor | | [@storybook/addon-storysource](https://redirect.github.com/storybookjs/storybook/tree/next/code/addons/storysource) ([source](https://redirect.github.com/storybookjs/storybook/tree/HEAD/code/addons/storysource)) | [`8.2.9` -> `8.3.0`](https://renovatebot.com/diffs/npm/@storybook%2faddon-storysource/8.2.9/8.3.0) | [](https://docs.renovatebot.com/merge-confidence/) | [](https://docs.renovatebot.com/merge-confidence/) | [](https://docs.renovatebot.com/merge-confidence/) | [](https://docs.renovatebot.com/merge-confidence/) | devDependencies | minor | | [@storybook/blocks](https://redirect.github.com/storybookjs/storybook/tree/next/code/lib/blocks) ([source](https://redirect.github.com/storybookjs/storybook/tree/HEAD/code/lib/blocks)) | [`8.2.9` -> `8.3.0`](https://renovatebot.com/diffs/npm/@storybook%2fblocks/8.2.9/8.3.0) | [](https://docs.renovatebot.com/merge-confidence/) | [](https://docs.renovatebot.com/merge-confidence/) | [](https://docs.renovatebot.com/merge-confidence/) | [](https://docs.renovatebot.com/merge-confidence/) | devDependencies | minor | | [@storybook/react](https://redirect.github.com/storybookjs/storybook/tree/next/code/renderers/react) ([source](https://redirect.github.com/storybookjs/storybook/tree/HEAD/code/renderers/react)) | [`8.2.9` -> `8.3.0`](https://renovatebot.com/diffs/npm/@storybook%2freact/8.2.9/8.3.0) | [](https://docs.renovatebot.com/merge-confidence/) | [](https://docs.renovatebot.com/merge-confidence/) | [](https://docs.renovatebot.com/merge-confidence/) | [](https://docs.renovatebot.com/merge-confidence/) | devDependencies | minor | | [@storybook/react-vite](https://redirect.github.com/storybookjs/storybook/tree/next/code/frameworks/react-vite) ([source](https://redirect.github.com/storybookjs/storybook/tree/HEAD/code/frameworks/react-vite)) | [`8.2.9` -> `8.3.0`](https://renovatebot.com/diffs/npm/@storybook%2freact-vite/8.2.9/8.3.0) | [](https://docs.renovatebot.com/merge-confidence/) | [](https://docs.renovatebot.com/merge-confidence/) | [](https://docs.renovatebot.com/merge-confidence/) | [](https://docs.renovatebot.com/merge-confidence/) | devDependencies | minor | | [@swc/core](https://swc.rs) ([source](https://redirect.github.com/swc-project/swc)) | [`1.7.23` -> `1.7.26`](https://renovatebot.com/diffs/npm/@swc%2fcore/1.7.23/1.7.26) | [](https://docs.renovatebot.com/merge-confidence/) | [](https://docs.renovatebot.com/merge-confidence/) | [](https://docs.renovatebot.com/merge-confidence/) | [](https://docs.renovatebot.com/merge-confidence/) | devDependencies | patch | | [@vitest/coverage-istanbul](https://redirect.github.com/vitest-dev/vitest/tree/main/packages/coverage-istanbul#readme) ([source](https://redirect.github.com/vitest-dev/vitest/tree/HEAD/packages/coverage-istanbul)) | [`2.0.5` -> `2.1.0`](https://renovatebot.com/diffs/npm/@vitest%2fcoverage-istanbul/2.0.5/2.1.0) | [](https://docs.renovatebot.com/merge-confidence/) | [](https://docs.renovatebot.com/merge-confidence/) | [](https://docs.renovatebot.com/merge-confidence/) | [](https://docs.renovatebot.com/merge-confidence/) | devDependencies | minor | | [@vitest/ui](https://redirect.github.com/vitest-dev/vitest/tree/main/packages/ui#readme) ([source](https://redirect.github.com/vitest-dev/vitest/tree/HEAD/packages/ui)) | [`2.0.5` -> `2.1.0`](https://renovatebot.com/diffs/npm/@vitest%2fui/2.0.5/2.1.0) | [](https://docs.renovatebot.com/merge-confidence/) | [](https://docs.renovatebot.com/merge-confidence/) | [](https://docs.renovatebot.com/merge-confidence/) | [](https://docs.renovatebot.com/merge-confidence/) | devDependencies | minor | | [anyhow](https://redirect.github.com/dtolnay/anyhow) | `1.0.86` -> `1.0.88` | [](https://docs.renovatebot.com/merge-confidence/) | [](https://docs.renovatebot.com/merge-confidence/) | [](https://docs.renovatebot.com/merge-confidence/) | [](https://docs.renovatebot.com/merge-confidence/) | workspace.dependencies | patch | | [commitlint](https://commitlint.js.org/) ([source](https://redirect.github.com/conventional-changelog/commitlint/tree/HEAD/@alias/commitlint)) | [`19.4.1` -> `19.5.0`](https://renovatebot.com/diffs/npm/commitlint/19.4.1/19.5.0) | [](https://docs.renovatebot.com/merge-confidence/) | [](https://docs.renovatebot.com/merge-confidence/) | [](https://docs.renovatebot.com/merge-confidence/) | [](https://docs.renovatebot.com/merge-confidence/) | devDependencies | minor | | [debug](https://redirect.github.com/debug-js/debug) | [`4.3.6` -> `4.3.7`](https://renovatebot.com/diffs/npm/debug/4.3.6/4.3.7) | [](https://docs.renovatebot.com/merge-confidence/) | [](https://docs.renovatebot.com/merge-confidence/) | [](https://docs.renovatebot.com/merge-confidence/) | [](https://docs.renovatebot.com/merge-confidence/) | dependencies | patch | | [electron](https://redirect.github.com/electron/electron) | [`31.4.0` -> `31.6.0`](https://renovatebot.com/diffs/npm/electron/31.4.0/31.6.0) | [](https://docs.renovatebot.com/merge-confidence/) | [](https://docs.renovatebot.com/merge-confidence/) | [](https://docs.renovatebot.com/merge-confidence/) | [](https://docs.renovatebot.com/merge-confidence/) | devDependencies | minor | | [electron-log](https://redirect.github.com/megahertz/electron-log) | [`5.1.7` -> `5.2.0`](https://renovatebot.com/diffs/npm/electron-log/5.1.7/5.2.0) | [](https://docs.renovatebot.com/merge-confidence/) | [](https://docs.renovatebot.com/merge-confidence/) | [](https://docs.renovatebot.com/merge-confidence/) | [](https://docs.renovatebot.com/merge-confidence/) | devDependencies | minor | | [file-type](https://redirect.github.com/sindresorhus/file-type) | [`19.4.1` -> `19.5.0`](https://renovatebot.com/diffs/npm/file-type/19.4.1/19.5.0) | [](https://docs.renovatebot.com/merge-confidence/) | [](https://docs.renovatebot.com/merge-confidence/) | [](https://docs.renovatebot.com/merge-confidence/) | [](https://docs.renovatebot.com/merge-confidence/) | dependencies | minor | | [foxact](https://foxact.skk.moe) ([source](https://redirect.github.com/SukkaW/foxact)) | [`0.2.37` -> `0.2.38`](https://renovatebot.com/diffs/npm/foxact/0.2.37/0.2.38) | [](https://docs.renovatebot.com/merge-confidence/) | [](https://docs.renovatebot.com/merge-confidence/) | [](https://docs.renovatebot.com/merge-confidence/) | [](https://docs.renovatebot.com/merge-confidence/) | dependencies | patch | | [happy-dom](https://redirect.github.com/capricorn86/happy-dom) | [`15.7.3` -> `15.7.4`](https://renovatebot.com/diffs/npm/happy-dom/15.7.3/15.7.4) | [](https://docs.renovatebot.com/merge-confidence/) | [](https://docs.renovatebot.com/merge-confidence/) | [](https://docs.renovatebot.com/merge-confidence/) | [](https://docs.renovatebot.com/merge-confidence/) | devDependencies | patch | | [html-validate](https://html-validate.org) ([source](https://gitlab.com/html-validate/html-validate)) | [`8.21.0` -> `8.22.0`](https://renovatebot.com/diffs/npm/html-validate/8.21.0/8.22.0) | [](https://docs.renovatebot.com/merge-confidence/) | [](https://docs.renovatebot.com/merge-confidence/) | [](https://docs.renovatebot.com/merge-confidence/) | [](https://docs.renovatebot.com/merge-confidence/) | dependencies | minor | | [husky](https://redirect.github.com/typicode/husky) | [`9.1.5` -> `9.1.6`](https://renovatebot.com/diffs/npm/husky/9.1.5/9.1.6) | [](https://docs.renovatebot.com/merge-confidence/) | [](https://docs.renovatebot.com/merge-confidence/) | [](https://docs.renovatebot.com/merge-confidence/) | [](https://docs.renovatebot.com/merge-confidence/) | devDependencies | patch | | [i18next](https://www.i18next.com) ([source](https://redirect.github.com/i18next/i18next)) | [`23.14.0` -> `23.15.1`](https://renovatebot.com/diffs/npm/i18next/23.14.0/23.15.1) | [](https://docs.renovatebot.com/merge-confidence/) | [](https://docs.renovatebot.com/merge-confidence/) | [](https://docs.renovatebot.com/merge-confidence/) | [](https://docs.renovatebot.com/merge-confidence/) | dependencies | minor | | [lucide-react](https://lucide.dev) ([source](https://redirect.github.com/lucide-icons/lucide/tree/HEAD/packages/lucide-react)) | [`^0.438.0` -> `^0.441.0`](https://renovatebot.com/diffs/npm/lucide-react/0.438.0/0.441.0) | [](https://docs.renovatebot.com/merge-confidence/) | [](https://docs.renovatebot.com/merge-confidence/) | [](https://docs.renovatebot.com/merge-confidence/) | [](https://docs.renovatebot.com/merge-confidence/) | dependencies | minor | | [marked](https://marked.js.org) ([source](https://redirect.github.com/markedjs/marked)) | [`14.1.1` -> `14.1.2`](https://renovatebot.com/diffs/npm/marked/14.1.1/14.1.2) | [](https://docs.renovatebot.com/merge-confidence/) | [](https://docs.renovatebot.com/merge-confidence/) | [](https://docs.renovatebot.com/merge-confidence/) | [](https://docs.renovatebot.com/merge-confidence/) | dependencies | patch | | [msw](https://mswjs.io) ([source](https://redirect.github.com/mswjs/msw)) | [`2.4.2` -> `2.4.5`](https://renovatebot.com/diffs/npm/msw/2.4.2/2.4.5) | [](https://docs.renovatebot.com/merge-confidence/) | [](https://docs.renovatebot.com/merge-confidence/) | [](https://docs.renovatebot.com/merge-confidence/) | [](https://docs.renovatebot.com/merge-confidence/) | devDependencies | patch | | [napi](https://redirect.github.com/napi-rs/napi-rs) | `3.0.0-alpha.8` -> `3.0.0-alpha.9` | [](https://docs.renovatebot.com/merge-confidence/) | [](https://docs.renovatebot.com/merge-confidence/) | [](https://docs.renovatebot.com/merge-confidence/) | [](https://docs.renovatebot.com/merge-confidence/) | workspace.dependencies | patch | | [napi-derive](https://redirect.github.com/napi-rs/napi-rs) | `3.0.0-alpha.7` -> `3.0.0-alpha.8` | [](https://docs.renovatebot.com/merge-confidence/) | [](https://docs.renovatebot.com/merge-confidence/) | [](https://docs.renovatebot.com/merge-confidence/) | [](https://docs.renovatebot.com/merge-confidence/) | workspace.dependencies | patch | | [nx](https://nx.dev) ([source](https://redirect.github.com/nrwl/nx/tree/HEAD/packages/nx)) | [`19.6.5` -> `19.7.3`](https://renovatebot.com/diffs/npm/nx/19.6.5/19.7.3) | [](https://docs.renovatebot.com/merge-confidence/) | [](https://docs.renovatebot.com/merge-confidence/) | [](https://docs.renovatebot.com/merge-confidence/) | [](https://docs.renovatebot.com/merge-confidence/) | devDependencies | minor | | [nx-cloud](https://nx.app) | [`19.0.0` -> `19.1.0`](https://renovatebot.com/diffs/npm/nx-cloud/19.0.0/19.1.0) | [](https://docs.renovatebot.com/merge-confidence/) | [](https://docs.renovatebot.com/merge-confidence/) | [](https://docs.renovatebot.com/merge-confidence/) | [](https://docs.renovatebot.com/merge-confidence/) | devDependencies | minor | | [openai](https://redirect.github.com/openai/openai-node) | [`4.57.3` -> `4.60.0`](https://renovatebot.com/diffs/npm/openai/4.57.3/4.60.0) | [](https://docs.renovatebot.com/merge-confidence/) | [](https://docs.renovatebot.com/merge-confidence/) | [](https://docs.renovatebot.com/merge-confidence/) | [](https://docs.renovatebot.com/merge-confidence/) | dependencies | minor | | [playwright](https://playwright.dev) ([source](https://redirect.github.com/microsoft/playwright)) | [`=1.46.1` -> `=1.47.0`](https://renovatebot.com/diffs/npm/playwright/1.46.1/1.47.0) | [](https://docs.renovatebot.com/merge-confidence/) | [](https://docs.renovatebot.com/merge-confidence/) | [](https://docs.renovatebot.com/merge-confidence/) | [](https://docs.renovatebot.com/merge-confidence/) | devDependencies | minor | | [react-day-picker](https://daypicker.dev) ([source](https://redirect.github.com/gpbl/react-day-picker)) | [`9.0.8` -> `9.0.9`](https://renovatebot.com/diffs/npm/react-day-picker/9.0.8/9.0.9) | [](https://docs.renovatebot.com/merge-confidence/) | [](https://docs.renovatebot.com/merge-confidence/) | [](https://docs.renovatebot.com/merge-confidence/) | [](https://docs.renovatebot.com/merge-confidence/) | dependencies | patch | | [react-router-dom](https://redirect.github.com/remix-run/react-router) ([source](https://redirect.github.com/remix-run/react-router/tree/HEAD/packages/react-router-dom)) | [`6.26.1` -> `6.26.2`](https://renovatebot.com/diffs/npm/react-router-dom/6.26.1/6.26.2) | [](https://docs.renovatebot.com/merge-confidence/) | [](https://docs.renovatebot.com/merge-confidence/) | [](https://docs.renovatebot.com/merge-confidence/) | [](https://docs.renovatebot.com/merge-confidence/) | dependencies | patch | | [react-router-dom](https://redirect.github.com/remix-run/react-router) ([source](https://redirect.github.com/remix-run/react-router/tree/HEAD/packages/react-router-dom)) | [`6.26.1` -> `6.26.2`](https://renovatebot.com/diffs/npm/react-router-dom/6.26.1/6.26.2) | [](https://docs.renovatebot.com/merge-confidence/) | [](https://docs.renovatebot.com/merge-confidence/) | [](https://docs.renovatebot.com/merge-confidence/) | [](https://docs.renovatebot.com/merge-confidence/) | devDependencies | patch | | [react-virtuoso](https://virtuoso.dev/) ([source](https://redirect.github.com/petyosi/react-virtuoso)) | [`4.10.2` -> `4.10.4`](https://renovatebot.com/diffs/npm/react-virtuoso/4.10.2/4.10.4) | [](https://docs.renovatebot.com/merge-confidence/) | [](https://docs.renovatebot.com/merge-confidence/) | [](https://docs.renovatebot.com/merge-confidence/) | [](https://docs.renovatebot.com/merge-confidence/) | dependencies | patch | | [serde](https://serde.rs) ([source](https://redirect.github.com/serde-rs/serde)) | `1.0.209` -> `1.0.210` | [](https://docs.renovatebot.com/merge-confidence/) | [](https://docs.renovatebot.com/merge-confidence/) | [](https://docs.renovatebot.com/merge-confidence/) | [](https://docs.renovatebot.com/merge-confidence/) | workspace.dependencies | patch | | [serde_json](https://redirect.github.com/serde-rs/json) | `1.0.127` -> `1.0.128` | [](https://docs.renovatebot.com/merge-confidence/) | [](https://docs.renovatebot.com/merge-confidence/) | [](https://docs.renovatebot.com/merge-confidence/) | [](https://docs.renovatebot.com/merge-confidence/) | workspace.dependencies | patch | | [sqlx](https://redirect.github.com/launchbadge/sqlx) | `0.8.1` -> `0.8.2` | [](https://docs.renovatebot.com/merge-confidence/) | [](https://docs.renovatebot.com/merge-confidence/) | [](https://docs.renovatebot.com/merge-confidence/) | [](https://docs.renovatebot.com/merge-confidence/) | workspace.dependencies | patch | | [storybook](https://redirect.github.com/storybookjs/storybook/tree/next/code/lib/cli) ([source](https://redirect.github.com/storybookjs/storybook/tree/HEAD/code/lib/cli)) | [`8.2.9` -> `8.3.0`](https://renovatebot.com/diffs/npm/storybook/8.2.9/8.3.0) | [](https://docs.renovatebot.com/merge-confidence/) | [](https://docs.renovatebot.com/merge-confidence/) | [](https://docs.renovatebot.com/merge-confidence/) | [](https://docs.renovatebot.com/merge-confidence/) | devDependencies | minor | | [stripe](https://redirect.github.com/stripe/stripe-node) | [`16.9.0` -> `16.11.0`](https://renovatebot.com/diffs/npm/stripe/16.9.0/16.11.0) | [](https://docs.renovatebot.com/merge-confidence/) | [](https://docs.renovatebot.com/merge-confidence/) | [](https://docs.renovatebot.com/merge-confidence/) | [](https://docs.renovatebot.com/merge-confidence/) | dependencies | minor | | [tailwindcss](https://tailwindcss.com) ([source](https://redirect.github.com/tailwindlabs/tailwindcss)) | [`3.4.10` -> `3.4.11`](https://renovatebot.com/diffs/npm/tailwindcss/3.4.10/3.4.11) | [](https://docs.renovatebot.com/merge-confidence/) | [](https://docs.renovatebot.com/merge-confidence/) | [](https://docs.renovatebot.com/merge-confidence/) | [](https://docs.renovatebot.com/merge-confidence/) | devDependencies | patch | | [typedoc](https://typedoc.org) ([source](https://redirect.github.com/TypeStrong/TypeDoc)) | [`0.26.6` -> `0.26.7`](https://renovatebot.com/diffs/npm/typedoc/0.26.6/0.26.7) | [](https://docs.renovatebot.com/merge-confidence/) | [](https://docs.renovatebot.com/merge-confidence/) | [](https://docs.renovatebot.com/merge-confidence/) | [](https://docs.renovatebot.com/merge-confidence/) | devDependencies | patch | | [typescript](https://www.typescriptlang.org/) ([source](https://redirect.github.com/microsoft/TypeScript)) | [`5.5.4` -> `5.6.2`](https://renovatebot.com/diffs/npm/typescript/5.5.4/5.6.2) | [](https://docs.renovatebot.com/merge-confidence/) | [](https://docs.renovatebot.com/merge-confidence/) | [](https://docs.renovatebot.com/merge-confidence/) | [](https://docs.renovatebot.com/merge-confidence/) | devDependencies | minor | | [typescript](https://www.typescriptlang.org/) ([source](https://redirect.github.com/microsoft/TypeScript)) | [`5.5.4` -> `5.6.2`](https://renovatebot.com/diffs/npm/typescript/5.5.4/5.6.2) | [](https://docs.renovatebot.com/merge-confidence/) | [](https://docs.renovatebot.com/merge-confidence/) | [](https://docs.renovatebot.com/merge-confidence/) | [](https://docs.renovatebot.com/merge-confidence/) | dependencies | minor | | [vite](https://vitejs.dev) ([source](https://redirect.github.com/vitejs/vite/tree/HEAD/packages/vite)) | [`5.4.3` -> `5.4.4`](https://renovatebot.com/diffs/npm/vite/5.4.3/5.4.4) | [](https://docs.renovatebot.com/merge-confidence/) | [](https://docs.renovatebot.com/merge-confidence/) | [](https://docs.renovatebot.com/merge-confidence/) | [](https://docs.renovatebot.com/merge-confidence/) | devDependencies | patch | | [vite-plugin-dts](https://redirect.github.com/qmhc/vite-plugin-dts) | [`4.1.0` -> `4.2.1`](https://renovatebot.com/diffs/npm/vite-plugin-dts/4.1.0/4.2.1) | [](https://docs.renovatebot.com/merge-confidence/) | [](https://docs.renovatebot.com/merge-confidence/) | [](https://docs.renovatebot.com/merge-confidence/) | [](https://docs.renovatebot.com/merge-confidence/) | devDependencies | minor | | [vitest](https://redirect.github.com/vitest-dev/vitest) ([source](https://redirect.github.com/vitest-dev/vitest/tree/HEAD/packages/vitest)) | [`2.0.5` -> `2.1.0`](https://renovatebot.com/diffs/npm/vitest/2.0.5/2.1.0) | [](https://docs.renovatebot.com/merge-confidence/) | [](https://docs.renovatebot.com/merge-confidence/) | [](https://docs.renovatebot.com/merge-confidence/) | [](https://docs.renovatebot.com/merge-confidence/) | devDependencies | minor | | [wrangler](https://redirect.github.com/cloudflare/workers-sdk) ([source](https://redirect.github.com/cloudflare/workers-sdk/tree/HEAD/packages/wrangler)) | [`3.74.0` -> `3.77.0`](https://renovatebot.com/diffs/npm/wrangler/3.74.0/3.77.0) | [](https://docs.renovatebot.com/merge-confidence/) | [](https://docs.renovatebot.com/merge-confidence/) | [](https://docs.renovatebot.com/merge-confidence/) | [](https://docs.renovatebot.com/merge-confidence/) | devDependencies | minor | --- ### Release Notes <details> <summary>aws/aws-sdk-js-v3 (@​aws-sdk/client-s3)</summary> ### [`v3.651.0`](https://redirect.github.com/aws/aws-sdk-js-v3/blob/HEAD/clients/client-s3/CHANGELOG.md#36510-2024-09-12) [Compare Source](https://redirect.github.com/aws/aws-sdk-js-v3/compare/v3.650.0...v3.651.0) **Note:** Version bump only for package [@​aws-sdk/client-s3](https://redirect.github.com/aws-sdk/client-s3) ### [`v3.650.0`](https://redirect.github.com/aws/aws-sdk-js-v3/blob/HEAD/clients/client-s3/CHANGELOG.md#36500-2024-09-11) [Compare Source](https://redirect.github.com/aws/aws-sdk-js-v3/compare/v3.649.0...v3.650.0) **Note:** Version bump only for package [@​aws-sdk/client-s3](https://redirect.github.com/aws-sdk/client-s3) ### [`v3.649.0`](https://redirect.github.com/aws/aws-sdk-js-v3/blob/HEAD/clients/client-s3/CHANGELOG.md#36490-2024-09-10) [Compare Source](https://redirect.github.com/aws/aws-sdk-js-v3/compare/v3.645.0...v3.649.0) ##### Features - **endpoints:** codegen sync for request creation performance improvements ([#​6449](https://redirect.github.com/aws/aws-sdk-js-v3/issues/6449)) ([c8e8f28](c8e8f28d07)) </details> <details> <summary>chromaui/addon-visual-tests (@​chromatic-com/storybook)</summary> ### [`v1.9.0`](https://redirect.github.com/chromaui/addon-visual-tests/blob/HEAD/CHANGELOG.md#v190-Fri-Sep-06-2024) [Compare Source](https://redirect.github.com/chromaui/addon-visual-tests/compare/v1.8.0...v1.9.0) ##### 🚀 Enhancement - Relay client-side fetch requests to the server using the Storybook channel API [#​331](https://redirect.github.com/chromaui/addon-visual-tests/pull/331) ([@​ghengeveld](https://redirect.github.com/ghengeveld)) ##### Authors: 1 - Gert Hengeveld ([@​ghengeveld](https://redirect.github.com/ghengeveld)) *** </details> <details> <summary>conventional-changelog/commitlint (@​commitlint/cli)</summary> ### [`v19.5.0`](https://redirect.github.com/conventional-changelog/commitlint/blob/HEAD/@​commitlint/cli/CHANGELOG.md#1950-2024-09-11) [Compare Source](https://redirect.github.com/conventional-changelog/commitlint/compare/v19.4.1...v19.5.0) ##### Features - **cli:** use special errorCode for missing rules/config [#​4142](https://redirect.github.com/conventional-changelog/commitlint/issues/4142) ([#​4143](https://redirect.github.com/conventional-changelog/commitlint/issues/4143)) ([d7070d8](d7070d8a49)) #### [19.4.1](https://redirect.github.com/conventional-changelog/commitlint/compare/v19.4.0...v19.4.1) (2024-08-28) **Note:** Version bump only for package [@​commitlint/cli](https://redirect.github.com/commitlint/cli) </details> <details> <summary>conventional-changelog/commitlint (@​commitlint/config-conventional)</summary> ### [`v19.5.0`](https://redirect.github.com/conventional-changelog/commitlint/blob/HEAD/@​commitlint/config-conventional/CHANGELOG.md#1950-2024-09-11) [Compare Source](https://redirect.github.com/conventional-changelog/commitlint/compare/v19.4.1...v19.5.0) **Note:** Version bump only for package [@​commitlint/config-conventional](https://redirect.github.com/commitlint/config-conventional) #### [19.4.1](https://redirect.github.com/conventional-changelog/commitlint/compare/v19.4.0...v19.4.1) (2024-08-28) **Note:** Version bump only for package [@​commitlint/config-conventional](https://redirect.github.com/commitlint/config-conventional) #### [19.2.2](https://redirect.github.com/conventional-changelog/commitlint/compare/v19.2.1...v19.2.2) (2024-04-14) **Note:** Version bump only for package [@​commitlint/config-conventional](https://redirect.github.com/commitlint/config-conventional) </details> <details> <summary>marsidev/react-turnstile (@​marsidev/react-turnstile)</summary> ### [`v1.0.2`](https://redirect.github.com/marsidev/react-turnstile/releases/tag/v1.0.2) [Compare Source](https://redirect.github.com/marsidev/react-turnstile/compare/v1.0.1...v1.0.2) ##### 🐞 Bug Fixes - Add default exports - by [@​marsidev](https://redirect.github.com/marsidev) [<samp>(2271b)</samp>](https://redirect.github.com/marsidev/react-turnstile/commit/2271bce) ##### [View changes on GitHub](https://redirect.github.com/marsidev/react-turnstile/compare/v1.0.1...v1.0.2) </details> <details> <summary>nrwl/nx (@​nx/vite)</summary> ### [`v19.7.3`](https://redirect.github.com/nrwl/nx/releases/tag/19.7.3) [Compare Source](https://redirect.github.com/nrwl/nx/compare/19.7.2...19.7.3) ##### 19.7.3 (2024-09-12) ##### 🚀 Features - **core:** import warns when source and destination directories are different ([#​27875](https://redirect.github.com/nrwl/nx/pull/27875)) ##### 🩹 Fixes - **core:** handle sync generator failures ([#​27650](https://redirect.github.com/nrwl/nx/pull/27650)) - **core:** handle --no-interative for create-nx-workspace ([#​27702](https://redirect.github.com/nrwl/nx/pull/27702)) - **core:** respect filenames of inputs when computing task hash ([#​27873](https://redirect.github.com/nrwl/nx/pull/27873)) - **core:** handleErrors should display error cause if it exists ([#​27886](https://redirect.github.com/nrwl/nx/pull/27886)) - **gradle:** fix gradle app deps ([#​27865](https://redirect.github.com/nrwl/nx/pull/27865)) - **js:** keep refs to ignored files and allow opting out of pruning stale refs in typescript sync generator ([#​27636](https://redirect.github.com/nrwl/nx/pull/27636)) - **misc:** createNodesV2 plugins should show inference capabilities ([#​27896](https://redirect.github.com/nrwl/nx/pull/27896)) - **nx-cloud:** include nxCloudId when generating connect urls ([#​27882](https://redirect.github.com/nrwl/nx/pull/27882)) - **webpack:** handle relative paths for additionalEntryPath ([#​27885](https://redirect.github.com/nrwl/nx/pull/27885)) ##### ❤️ Thank You - Craigory Coppola [@​AgentEnder](https://redirect.github.com/AgentEnder) - Emily Xiong [@​xiongemi](https://redirect.github.com/xiongemi) - Jack Hsu [@​jaysoo](https://redirect.github.com/jaysoo) - Leosvel Pérez Espinosa [@​leosvelperez](https://redirect.github.com/leosvelperez) - Louie Weng [@​lourw](https://redirect.github.com/lourw) - Nate Jacobs [@​iAmNathanJ](https://redirect.github.com/iAmNathanJ) ### [`v19.7.2`](https://redirect.github.com/nrwl/nx/releases/tag/19.7.2) [Compare Source](https://redirect.github.com/nrwl/nx/compare/19.7.1...19.7.2) ##### 19.7.2 (2024-09-10) ##### 🩹 Fixes - **core:** take nx-release-publish target defaults into account for implicit target ([#​27764](https://redirect.github.com/nrwl/nx/pull/27764)) - **release:** ensure git commits containing pipe can be parsed reliably ([#​27840](https://redirect.github.com/nrwl/nx/pull/27840)) ##### ❤️ Thank You - James Henry [@​JamesHenry](https://redirect.github.com/JamesHenry) ### [`v19.7.1`](https://redirect.github.com/nrwl/nx/releases/tag/19.7.1) [Compare Source](https://redirect.github.com/nrwl/nx/compare/19.7.0...19.7.1) ##### 19.7.1 (2024-09-10) ##### 🚀 Features - **release:** allow local dependency version protocols to be preserved, pnpm publish support ([#​27787](https://redirect.github.com/nrwl/nx/pull/27787)) ##### 🩹 Fixes - **core:** make sure sharedGlobals is referenced in default namedInputs ([#​27813](https://redirect.github.com/nrwl/nx/pull/27813)) - **release:** respect updateDependents being explicitly disabled in conventional commits ([#​27851](https://redirect.github.com/nrwl/nx/pull/27851)) ##### ❤️ Thank You - James Henry [@​JamesHenry](https://redirect.github.com/JamesHenry) - Juri Strumpflohner [@​juristr](https://redirect.github.com/juristr) ### [`v19.7.0`](https://redirect.github.com/nrwl/nx/releases/tag/19.7.0) [Compare Source](https://redirect.github.com/nrwl/nx/compare/19.6.6...19.7.0) ##### 19.7.0 (2024-09-09) ##### 🚀 Features - **bundling:** add option to generate sourcemaps for Rollup build ([#​27539](https://redirect.github.com/nrwl/nx/pull/27539)) - **bundling:** add nxCopyAssetsPlugin for Vite to use in JS libs ([#​27593](https://redirect.github.com/nrwl/nx/pull/27593)) - **core:** add shutdown lifecycle hook to node executor ([#​27354](https://redirect.github.com/nrwl/nx/pull/27354)) - **core:** add sqlite db for nx ([#​26891](https://redirect.github.com/nrwl/nx/pull/26891)) - **core:** expose graph json type ([#​27496](https://redirect.github.com/nrwl/nx/pull/27496)) - **core:** return task results from imperative task runner ([#​27640](https://redirect.github.com/nrwl/nx/pull/27640)) - **core:** refactor graph implementation details ([#​27267](https://redirect.github.com/nrwl/nx/pull/27267)) - **core:** allow disabling registered task sync generators ([#​27638](https://redirect.github.com/nrwl/nx/pull/27638)) - **core:** allow skipping sync when running tasks ([#​27697](https://redirect.github.com/nrwl/nx/pull/27697)) - **core:** a
619 lines
19 KiB
YAML
619 lines
19 KiB
YAML
name: Build & Test
|
||
|
||
on:
|
||
push:
|
||
branches:
|
||
- canary
|
||
- beta
|
||
- stable
|
||
- v[0-9]+.[0-9]+.x-staging
|
||
- v[0-9]+.[0-9]+.x
|
||
paths-ignore:
|
||
- README.md
|
||
pull_request:
|
||
|
||
env:
|
||
DEBUG: napi:*
|
||
BUILD_TYPE: canary
|
||
APP_NAME: affine
|
||
AFFINE_ENV: dev
|
||
COVERAGE: true
|
||
MACOSX_DEPLOYMENT_TARGET: '10.13'
|
||
NX_CLOUD_ACCESS_TOKEN: ${{ secrets.NX_CLOUD_ACCESS_TOKEN }}
|
||
PLAYWRIGHT_BROWSERS_PATH: ${{ github.workspace }}/node_modules/.cache/ms-playwright
|
||
DEPLOYMENT_TYPE: affine
|
||
|
||
concurrency:
|
||
group: ${{ github.workflow }}-${{ github.ref }}
|
||
cancel-in-progress: true
|
||
|
||
jobs:
|
||
analyze:
|
||
name: Analyze
|
||
runs-on: ubuntu-latest
|
||
permissions:
|
||
actions: read
|
||
contents: read
|
||
security-events: write
|
||
|
||
strategy:
|
||
fail-fast: false
|
||
matrix:
|
||
language: ['javascript', 'typescript']
|
||
# Learn more about CodeQL language support at https://aka.ms/codeql-docs/language-support
|
||
|
||
steps:
|
||
- name: Checkout repository
|
||
uses: actions/checkout@v4
|
||
|
||
# Initializes the CodeQL tools for scanning.
|
||
- name: Initialize CodeQL
|
||
uses: github/codeql-action/init@v3
|
||
with:
|
||
languages: ${{ matrix.language }}
|
||
# If you wish to specify custom queries, you can do so here or in a config file.
|
||
# By default, queries listed here will override any specified in a config file.
|
||
# Prefix the list here with "+" to use these queries and those in the config file.
|
||
|
||
# Details on CodeQL's query packs refer to : https://docs.github.com/en/code-security/code-scanning/automatically-scanning-your-code-for-vulnerabilities-and-errors/configuring-code-scanning#using-queries-in-ql-packs
|
||
# queries: security-extended,security-and-quality
|
||
|
||
# Autobuild attempts to build any compiled languages (C/C++, C#, or Java).
|
||
# If this step fails, then you should remove it and run the build manually (see below)
|
||
- name: Autobuild
|
||
uses: github/codeql-action/autobuild@v3
|
||
|
||
# ℹ️ Command-line programs to run using the OS shell.
|
||
# 📚 See https://docs.github.com/en/actions/using-workflows/workflow-syntax-for-github-actions#jobsjob_idstepsrun
|
||
|
||
# If the Autobuild fails above, remove it and uncomment the following three lines.
|
||
# modify them (or add more) to build your code if your project, please refer to the EXAMPLE below for guidance.
|
||
|
||
# - run: |
|
||
# echo "Run, Build Application using script"
|
||
# ./location_of_script_within_repo/buildscript.sh
|
||
|
||
- name: Perform CodeQL Analysis
|
||
uses: github/codeql-action/analyze@v3
|
||
lint:
|
||
name: Lint
|
||
runs-on: ubuntu-latest
|
||
|
||
steps:
|
||
- uses: actions/checkout@v4
|
||
- name: Run oxlint
|
||
# oxlint is fast, so wrong code will fail quickly
|
||
run: yarn dlx $(node -e "console.log(require('./package.json').scripts['lint:ox'].replace('oxlint', 'oxlint@' + require('./package.json').devDependencies.oxlint))")
|
||
- name: Setup Node.js
|
||
uses: ./.github/actions/setup-node
|
||
with:
|
||
electron-install: false
|
||
full-cache: true
|
||
- name: Run i18n codegen
|
||
run: yarn i18n-codegen gen
|
||
- name: Run ESLint
|
||
run: yarn lint:eslint --max-warnings=0
|
||
- name: Run Prettier
|
||
# Set nmMode in `actions/setup-node` will modify the .yarnrc.yml
|
||
run: |
|
||
git checkout .yarnrc.yml
|
||
yarn lint:prettier
|
||
- name: Yarn Dedupe
|
||
run: yarn dedupe --check
|
||
- name: Run Type Check
|
||
run: yarn typecheck
|
||
|
||
check-yarn-binary:
|
||
name: Check yarn binary
|
||
runs-on: ubuntu-latest
|
||
steps:
|
||
- uses: actions/checkout@v4
|
||
- name: Run check
|
||
run: |
|
||
yarn set version $(node -e "console.log(require('./package.json').packageManager.split('@')[1])")
|
||
git diff --exit-code
|
||
|
||
e2e-test:
|
||
name: E2E Test
|
||
runs-on: ubuntu-latest
|
||
env:
|
||
DISTRIBUTION: web
|
||
IN_CI_TEST: true
|
||
strategy:
|
||
fail-fast: false
|
||
matrix:
|
||
shard: [1, 2, 3, 4, 5]
|
||
steps:
|
||
- uses: actions/checkout@v4
|
||
- name: Setup Node.js
|
||
uses: ./.github/actions/setup-node
|
||
with:
|
||
playwright-install: true
|
||
electron-install: false
|
||
full-cache: true
|
||
|
||
- name: Run playwright tests
|
||
run: yarn workspace @affine-test/affine-local e2e --forbid-only --shard=${{ matrix.shard }}/${{ strategy.job-total }}
|
||
|
||
- name: Upload test results
|
||
if: ${{ failure() }}
|
||
uses: actions/upload-artifact@v4
|
||
with:
|
||
name: test-results-e2e-${{ matrix.shard }}
|
||
path: ./test-results
|
||
if-no-files-found: ignore
|
||
|
||
e2e-mobile-test:
|
||
name: E2E Mobile Test
|
||
runs-on: ubuntu-latest
|
||
env:
|
||
DISTRIBUTION: mobile
|
||
IN_CI_TEST: true
|
||
strategy:
|
||
fail-fast: false
|
||
matrix:
|
||
shard: [1, 2, 3, 4, 5]
|
||
steps:
|
||
- uses: actions/checkout@v4
|
||
- name: Setup Node.js
|
||
uses: ./.github/actions/setup-node
|
||
with:
|
||
playwright-install: true
|
||
electron-install: false
|
||
full-cache: true
|
||
|
||
- name: Run playwright tests
|
||
run: yarn workspace @affine-test/affine-mobile e2e --forbid-only --shard=${{ matrix.shard }}/${{ strategy.job-total }}
|
||
|
||
- name: Upload test results
|
||
if: ${{ failure() }}
|
||
uses: actions/upload-artifact@v4
|
||
with:
|
||
name: test-results-e2e-mobile-${{ matrix.shard }}
|
||
path: ./test-results
|
||
if-no-files-found: ignore
|
||
|
||
e2e-migration-test:
|
||
name: E2E Migration Test
|
||
runs-on: ubuntu-latest
|
||
env:
|
||
DISTRIBUTION: web
|
||
steps:
|
||
- uses: actions/checkout@v4
|
||
- name: Setup Node.js
|
||
uses: ./.github/actions/setup-node
|
||
with:
|
||
playwright-install: true
|
||
electron-install: false
|
||
full-cache: true
|
||
|
||
- name: Run playwright tests
|
||
run: yarn workspace @affine-test/affine-migration e2e --forbid-only
|
||
|
||
- name: Upload test results
|
||
if: ${{ failure() }}
|
||
uses: actions/upload-artifact@v4
|
||
with:
|
||
name: test-results-e2e-migration
|
||
path: ./test-results
|
||
if-no-files-found: ignore
|
||
|
||
unit-test:
|
||
name: Unit Test
|
||
runs-on: ubuntu-latest
|
||
needs:
|
||
- build-native
|
||
env:
|
||
DISTRIBUTION: web
|
||
steps:
|
||
- uses: actions/checkout@v4
|
||
- name: Setup Node.js
|
||
uses: ./.github/actions/setup-node
|
||
with:
|
||
electron-install: true
|
||
full-cache: true
|
||
|
||
- name: Download affine.linux-x64-gnu.node
|
||
uses: actions/download-artifact@v4
|
||
with:
|
||
name: affine.linux-x64-gnu.node
|
||
path: ./packages/frontend/native
|
||
|
||
- name: Unit Test
|
||
run: yarn nx test:coverage @affine/monorepo
|
||
|
||
- name: Upload unit test coverage results
|
||
uses: codecov/codecov-action@v4
|
||
with:
|
||
token: ${{ secrets.CODECOV_TOKEN }}
|
||
files: ./.coverage/store/lcov.info
|
||
flags: unittest
|
||
name: affine
|
||
fail_ci_if_error: false
|
||
|
||
build-native:
|
||
name: Build AFFiNE native (${{ matrix.spec.target }})
|
||
runs-on: ${{ matrix.spec.os }}
|
||
env:
|
||
CARGO_PROFILE_RELEASE_DEBUG: '1'
|
||
strategy:
|
||
fail-fast: false
|
||
matrix:
|
||
spec:
|
||
- { os: ubuntu-latest, target: x86_64-unknown-linux-gnu }
|
||
- { os: windows-latest, target: x86_64-pc-windows-msvc }
|
||
- { os: macos-14, target: x86_64-apple-darwin }
|
||
- { os: macos-14, target: aarch64-apple-darwin }
|
||
|
||
steps:
|
||
- uses: actions/checkout@v4
|
||
- name: Setup Node.js
|
||
uses: ./.github/actions/setup-node
|
||
with:
|
||
extra-flags: workspaces focus @affine/native
|
||
electron-install: false
|
||
- name: Setup filename
|
||
id: filename
|
||
shell: bash
|
||
run: |
|
||
export PLATFORM_ARCH_ABI=$(node -e "console.log(require('@napi-rs/cli').parseTriple('${{ matrix.spec.target }}').platformArchABI)")
|
||
echo "filename=affine.$PLATFORM_ARCH_ABI.node" >> "$GITHUB_OUTPUT"
|
||
- name: Build AFFiNE native
|
||
uses: ./.github/actions/build-rust
|
||
with:
|
||
target: ${{ matrix.spec.target }}
|
||
package: '@affine/native'
|
||
nx_token: ${{ secrets.NX_CLOUD_ACCESS_TOKEN }}
|
||
- name: Upload ${{ steps.filename.outputs.filename }}
|
||
uses: actions/upload-artifact@v4
|
||
with:
|
||
name: ${{ steps.filename.outputs.filename }}
|
||
path: ./packages/frontend/native/${{ steps.filename.outputs.filename }}
|
||
if-no-files-found: error
|
||
|
||
build-server-native:
|
||
name: Build Server native
|
||
runs-on: ubuntu-latest
|
||
env:
|
||
CARGO_PROFILE_RELEASE_DEBUG: '1'
|
||
steps:
|
||
- uses: actions/checkout@v4
|
||
- name: Setup Node.js
|
||
uses: ./.github/actions/setup-node
|
||
with:
|
||
extra-flags: workspaces focus @affine/server-native
|
||
electron-install: false
|
||
- name: Build Rust
|
||
uses: ./.github/actions/build-rust
|
||
with:
|
||
target: 'x86_64-unknown-linux-gnu'
|
||
package: '@affine/server-native'
|
||
nx_token: ${{ secrets.NX_CLOUD_ACCESS_TOKEN }}
|
||
- name: Upload server-native.node
|
||
uses: actions/upload-artifact@v4
|
||
with:
|
||
name: server-native.node
|
||
path: ./packages/backend/native/server-native.node
|
||
if-no-files-found: error
|
||
|
||
build-web:
|
||
name: Build @affine/web
|
||
runs-on: ubuntu-latest
|
||
|
||
steps:
|
||
- uses: actions/checkout@v4
|
||
- name: Setup Node.js
|
||
uses: ./.github/actions/setup-node
|
||
with:
|
||
electron-install: false
|
||
full-cache: true
|
||
- name: Build Web
|
||
# always skip cache because its fast, and cache configuration is always changing
|
||
run: yarn nx build @affine/web --skip-nx-cache
|
||
env:
|
||
DISTRIBUTION: desktop
|
||
- name: zip web
|
||
run: tar -czf dist.tar.gz --directory=packages/frontend/apps/electron/renderer/dist .
|
||
- name: Upload web artifact
|
||
uses: actions/upload-artifact@v4
|
||
with:
|
||
name: web
|
||
path: dist.tar.gz
|
||
if-no-files-found: error
|
||
|
||
server-test:
|
||
name: Server Test
|
||
runs-on: ubuntu-latest
|
||
needs: build-server-native
|
||
env:
|
||
NODE_ENV: test
|
||
DISTRIBUTION: web
|
||
services:
|
||
postgres:
|
||
image: postgres
|
||
env:
|
||
POSTGRES_PASSWORD: affine
|
||
options: >-
|
||
--health-cmd pg_isready
|
||
--health-interval 10s
|
||
--health-timeout 5s
|
||
--health-retries 5
|
||
ports:
|
||
- 5432:5432
|
||
mailer:
|
||
image: mailhog/mailhog
|
||
ports:
|
||
- 1025:1025
|
||
- 8025:8025
|
||
steps:
|
||
- uses: actions/checkout@v4
|
||
|
||
- name: Setup Node.js
|
||
uses: ./.github/actions/setup-node
|
||
with:
|
||
electron-install: false
|
||
full-cache: true
|
||
|
||
- name: Download server-native.node
|
||
uses: actions/download-artifact@v4
|
||
with:
|
||
name: server-native.node
|
||
path: ./packages/backend/server
|
||
|
||
- name: Initialize database
|
||
run: |
|
||
psql -h localhost -U postgres -c "CREATE DATABASE affine;"
|
||
psql -h localhost -U postgres -c "CREATE USER affine WITH PASSWORD 'affine';"
|
||
psql -h localhost -U postgres -c "ALTER USER affine WITH SUPERUSER;"
|
||
env:
|
||
PGPASSWORD: affine
|
||
|
||
- name: Run init-db script
|
||
run: |
|
||
yarn workspace @affine/server exec prisma generate
|
||
yarn workspace @affine/server exec prisma db push
|
||
yarn workspace @affine/server data-migration run
|
||
env:
|
||
DATABASE_URL: postgresql://affine:affine@localhost:5432/affine
|
||
|
||
- name: Run server tests
|
||
run: yarn workspace @affine/server test:coverage
|
||
env:
|
||
CARGO_TARGET_DIR: '${{ github.workspace }}/target'
|
||
DATABASE_URL: postgresql://affine:affine@localhost:5432/affine
|
||
COPILOT_OPENAI_API_KEY: 'use_fake_openai_api_key'
|
||
|
||
- name: Upload server test coverage results
|
||
uses: codecov/codecov-action@v4
|
||
with:
|
||
token: ${{ secrets.CODECOV_TOKEN }}
|
||
files: ./packages/backend/server/.coverage/lcov.info
|
||
flags: server-test
|
||
name: affine
|
||
fail_ci_if_error: false
|
||
|
||
server-e2e-test:
|
||
name: ${{ matrix.tests.name }}
|
||
runs-on: ubuntu-latest
|
||
env:
|
||
DISTRIBUTION: web
|
||
DATABASE_URL: postgresql://affine:affine@localhost:5432/affine
|
||
IN_CI_TEST: true
|
||
strategy:
|
||
fail-fast: false
|
||
matrix:
|
||
tests:
|
||
- name: 'Server E2E Test 1/3'
|
||
script: yarn workspace @affine-test/affine-cloud e2e --forbid-only --shard=1/3
|
||
- name: 'Server E2E Test 2/3'
|
||
script: yarn workspace @affine-test/affine-cloud e2e --forbid-only --shard=2/3
|
||
- name: 'Server E2E Test 3/3'
|
||
script: yarn workspace @affine-test/affine-cloud e2e --forbid-only --shard=3/3
|
||
- name: 'Server Desktop E2E Test'
|
||
script: |
|
||
yarn workspace @affine/electron build:dev
|
||
xvfb-run --auto-servernum --server-args="-screen 0 1280x960x24" -- yarn workspace @affine-test/affine-desktop-cloud e2e
|
||
needs:
|
||
- build-server-native
|
||
- build-native
|
||
services:
|
||
postgres:
|
||
image: postgres
|
||
env:
|
||
POSTGRES_PASSWORD: affine
|
||
options: >-
|
||
--health-cmd pg_isready
|
||
--health-interval 10s
|
||
--health-timeout 5s
|
||
--health-retries 5
|
||
ports:
|
||
- 5432:5432
|
||
mailer:
|
||
image: mailhog/mailhog
|
||
ports:
|
||
- 1025:1025
|
||
- 8025:8025
|
||
steps:
|
||
- uses: actions/checkout@v4
|
||
|
||
- name: Setup Node.js
|
||
uses: ./.github/actions/setup-node
|
||
with:
|
||
playwright-install: true
|
||
hard-link-nm: false
|
||
|
||
- name: Download server-native.node
|
||
uses: actions/download-artifact@v4
|
||
with:
|
||
name: server-native.node
|
||
path: ./packages/backend/server
|
||
|
||
- name: Download affine.linux-x64-gnu.node
|
||
uses: actions/download-artifact@v4
|
||
with:
|
||
name: affine.linux-x64-gnu.node
|
||
path: ./packages/frontend/native
|
||
|
||
- name: Initialize database
|
||
run: |
|
||
psql -h localhost -U postgres -c "CREATE DATABASE affine;"
|
||
psql -h localhost -U postgres -c "CREATE USER affine WITH PASSWORD 'affine';"
|
||
psql -h localhost -U postgres -c "ALTER USER affine WITH SUPERUSER;"
|
||
env:
|
||
PGPASSWORD: affine
|
||
|
||
- name: Run init-db script
|
||
run: |
|
||
yarn workspace @affine/server exec prisma generate
|
||
yarn workspace @affine/server exec prisma db push
|
||
yarn workspace @affine/server data-migration run
|
||
|
||
- name: ${{ matrix.tests.name }}
|
||
run: |
|
||
${{ matrix.tests.script }}
|
||
env:
|
||
DEV_SERVER_URL: http://localhost:8080
|
||
COPILOT_OPENAI_API_KEY: 1
|
||
COPILOT_FAL_API_KEY: 1
|
||
|
||
- name: Upload test results
|
||
if: ${{ failure() }}
|
||
uses: actions/upload-artifact@v4
|
||
with:
|
||
name: test-results-e2e-server
|
||
path: ./test-results
|
||
if-no-files-found: ignore
|
||
|
||
desktop-test:
|
||
name: Desktop Test (${{ matrix.spec.os }}, ${{ matrix.spec.platform }}, ${{ matrix.spec.arch }}, ${{ matrix.spec.target }}, ${{ matrix.spec.test }})
|
||
runs-on: ${{ matrix.spec.os }}
|
||
strategy:
|
||
fail-fast: false
|
||
matrix:
|
||
spec:
|
||
- {
|
||
os: macos-14,
|
||
platform: macos,
|
||
arch: x64,
|
||
target: x86_64-apple-darwin,
|
||
test: false,
|
||
}
|
||
- {
|
||
os: macos-14,
|
||
platform: macos,
|
||
arch: arm64,
|
||
target: aarch64-apple-darwin,
|
||
test: true,
|
||
}
|
||
- {
|
||
os: ubuntu-latest,
|
||
platform: linux,
|
||
arch: x64,
|
||
target: x86_64-unknown-linux-gnu,
|
||
test: true,
|
||
}
|
||
- {
|
||
os: windows-latest,
|
||
platform: windows,
|
||
arch: x64,
|
||
target: x86_64-pc-windows-msvc,
|
||
test: true,
|
||
}
|
||
needs:
|
||
- build-web
|
||
- build-native
|
||
steps:
|
||
- uses: actions/checkout@v4
|
||
- name: Setup Node.js
|
||
uses: ./.github/actions/setup-node
|
||
timeout-minutes: 10
|
||
with:
|
||
extra-flags: workspaces focus @affine/electron @affine/monorepo @affine-test/affine-desktop
|
||
playwright-install: true
|
||
hard-link-nm: false
|
||
enableScripts: false
|
||
|
||
- name: Setup filename
|
||
id: filename
|
||
shell: bash
|
||
run: |
|
||
export PLATFORM_ARCH_ABI=$(node -e "console.log(require('@napi-rs/cli').parseTriple('${{ matrix.spec.target }}').platformArchABI)")
|
||
echo "filename=affine.$PLATFORM_ARCH_ABI.node" >> "$GITHUB_OUTPUT"
|
||
|
||
- name: Download ${{ steps.filename.outputs.filename }}
|
||
uses: actions/download-artifact@v4
|
||
with:
|
||
name: ${{ steps.filename.outputs.filename }}
|
||
path: ./packages/frontend/native
|
||
|
||
- name: Run unit tests
|
||
if: ${{ matrix.spec.test }}
|
||
shell: bash
|
||
run: yarn workspace @affine/electron vitest
|
||
|
||
- name: Download web artifact
|
||
uses: ./.github/actions/download-web
|
||
with:
|
||
path: packages/frontend/apps/electron/resources/web-static
|
||
|
||
- name: Build Desktop Layers
|
||
run: yarn workspace @affine/electron build
|
||
|
||
- name: Run desktop tests
|
||
if: ${{ matrix.spec.os == 'ubuntu-latest' }}
|
||
run: xvfb-run --auto-servernum --server-args="-screen 0 1280x960x24" -- yarn workspace @affine-test/affine-desktop e2e
|
||
|
||
- name: Run desktop tests
|
||
if: ${{ matrix.spec.test && matrix.spec.os != 'ubuntu-latest' }}
|
||
run: yarn workspace @affine-test/affine-desktop e2e
|
||
|
||
- name: Make bundle
|
||
if: ${{ matrix.spec.target == 'aarch64-apple-darwin' }}
|
||
env:
|
||
SKIP_BUNDLE: true
|
||
SKIP_WEB_BUILD: true
|
||
HOIST_NODE_MODULES: 1
|
||
run: yarn workspace @affine/electron package --platform=darwin --arch=arm64
|
||
|
||
- name: Make AppImage
|
||
run: yarn workspace @affine/electron make --platform=linux --arch=x64
|
||
if: ${{ matrix.spec.target == 'x86_64-unknown-linux-gnu' }}
|
||
env:
|
||
SKIP_WEB_BUILD: 1
|
||
HOIST_NODE_MODULES: 1
|
||
|
||
- name: Output check
|
||
if: ${{ matrix.spec.os == 'macos-14' && matrix.spec.arch == 'arm64' }}
|
||
run: |
|
||
yarn workspace @affine/electron exec node --loader ts-node/esm/transpile-only ./scripts/macos-arm64-output-check.ts
|
||
|
||
- name: Upload test results
|
||
if: ${{ failure() }}
|
||
uses: actions/upload-artifact@v4
|
||
with:
|
||
name: test-results-e2e-${{ matrix.spec.os }}-${{ matrix.spec.arch }}
|
||
path: ./test-results
|
||
if-no-files-found: ignore
|
||
|
||
test-done:
|
||
needs:
|
||
- analyze
|
||
- lint
|
||
- check-yarn-binary
|
||
- e2e-test
|
||
- e2e-mobile-test
|
||
- e2e-migration-test
|
||
- unit-test
|
||
- build-native
|
||
- build-server-native
|
||
- server-test
|
||
- server-e2e-test
|
||
- desktop-test
|
||
if: always()
|
||
runs-on: ubuntu-latest
|
||
name: 3, 2, 1 Launch
|
||
steps:
|
||
- run: exit 1
|
||
# Thank you, next https://github.com/vercel/next.js/blob/canary/.github/workflows/build_and_test.yml#L379
|
||
if: ${{ always() && (contains(needs.*.result, 'failure') || contains(needs.*.result, 'cancelled')) }}
|