mirror of
https://github.com/AppFlowy-IO/AppFlowy.git
synced 2024-08-30 18:12:39 +00:00
275d0b2ac4
* fix: support filtering results by workspace * feat: add search button to sidebar * fix: reduce view/recent view fetching across application * feat: add channel to search listener * feat: clean + localization * chore: remove redundant code * fix: disable search * chore: trigger ci * chore: disable search in backend * test: disable search tests for now * feat: temp disable reliance on folder search * fix: add debounce to inline actions * chore: complete future if disposed * fix: clean code * chore: disable unused bloc with feature flag * fix: recent views lazy read * chore: revert podilfe change * chore: update logs * chore: update client api and collab * chore: fix tst * chore: fix test & update collab commit * chore: update collab commit * test: fix unit tests * chore: update rust toolchain 1.77 * chore: use opt-level 1 * fix: code review * chore: clippy --------- Co-authored-by: nathan <nathan@appflowy.io> Co-authored-by: Lucas.Xu <lucas.xu@appflowy.io>
84 lines
2.1 KiB
YAML
84 lines
2.1 KiB
YAML
name: WEB-CI
|
|
|
|
on:
|
|
workflow_dispatch:
|
|
inputs:
|
|
build:
|
|
description: 'Build the web app'
|
|
required: true
|
|
default: 'true'
|
|
|
|
env:
|
|
CARGO_TERM_COLOR: always
|
|
NODE_VERSION: "18.16.0"
|
|
PNPM_VERSION: "8.5.0"
|
|
RUST_TOOLCHAIN: "1.77.2"
|
|
CARGO_MAKE_VERSION: "0.36.6"
|
|
|
|
jobs:
|
|
web-build:
|
|
if: github.event.pull_request.draft != true
|
|
strategy:
|
|
fail-fast: false
|
|
matrix:
|
|
platform: [ ubuntu-latest ]
|
|
|
|
runs-on: ${{ matrix.platform }}
|
|
steps:
|
|
- uses: actions/checkout@v4
|
|
- name: setup node
|
|
uses: actions/setup-node@v4
|
|
with:
|
|
node-version: ${{ env.NODE_VERSION }}
|
|
|
|
- name: Cache Rust Dependencies
|
|
uses: Swatinem/rust-cache@v2
|
|
with:
|
|
key: rust-dependencies-${{ runner.os }}
|
|
workspaces: |
|
|
frontend/rust-lib
|
|
frontend/appflowy_web/appflowy_wasm
|
|
|
|
# TODO: Can combine caching deps and node_modules in one
|
|
# See Glob patterns: https://github.com/actions/toolkit/tree/main/packages/glob
|
|
- name: Cache Node.js dependencies
|
|
uses: actions/cache@v4
|
|
with:
|
|
path: ~/.npm
|
|
key: npm-${{ runner.os }}
|
|
|
|
- name: Cache node_modules
|
|
uses: actions/cache@v4
|
|
with:
|
|
path: frontend/appflowy_web/node_modules
|
|
key: node-modules-${{ runner.os }}
|
|
|
|
- name: Install Rust toolchain
|
|
id: rust_toolchain
|
|
uses: actions-rs/toolchain@v1
|
|
with:
|
|
toolchain: ${{ env.RUST_TOOLCHAIN }}
|
|
override: true
|
|
profile: minimal
|
|
|
|
- name: Install wasm-pack
|
|
run: cargo install wasm-pack
|
|
|
|
- uses: taiki-e/install-action@v2
|
|
with:
|
|
tool: cargo-make@${{ env.CARGO_MAKE_VERSION }}
|
|
|
|
- name: install dependencies
|
|
if: matrix.platform == 'ubuntu-latest'
|
|
working-directory: frontend
|
|
run: |
|
|
sudo apt-get update
|
|
npm install -g pnpm@${{ env.PNPM_VERSION }}
|
|
cargo make install_web_protobuf
|
|
|
|
- name: Build
|
|
working-directory: frontend/appflowy_web
|
|
run: |
|
|
pnpm install
|
|
pnpm run build_release_wasm
|