forked from AppFlowy-IO/AppFlowy-Cloud
-
Notifications
You must be signed in to change notification settings - Fork 0
39 lines (30 loc) · 902 Bytes
/
Copy pathclient_api_check.yml
File metadata and controls
39 lines (30 loc) · 902 Bytes
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
name: ClientAPI Check
on:
push:
branches: [ main ]
pull_request:
types: [ opened, synchronize, reopened ]
branches: [ main ]
jobs:
test:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v3
- uses: dtolnay/rust-toolchain@stable
- uses: Swatinem/rust-cache@v2
with:
workspaces: |
AppFlowy-Cloud
- name: Install cargo-tree
run: cargo install cargo-tree
- name: Install wasm-pack
run: cargo install wasm-pack
- name: Build ClientAPI
working-directory: ./libs/client-api
run: cargo build --features "enable_brotli"
- name: Build ClientAPI WASM
working-directory: ./libs/client-api
run: wasm-pack build
- name: Check ClientAPI Dependencies
working-directory: ./libs/client-api
run: bash ../../script/client_api_deps_check.sh