mirror of
https://github.com/AppFlowy-IO/AppFlowy.git
synced 2024-08-30 18:12:39 +00:00
chore: remove unused step in rust CI, allow cache on failure, show container logs (#5770)
This commit is contained in:
parent
661a0879c6
commit
20e82880ff
15
.github/workflows/rust_ci.yaml
vendored
15
.github/workflows/rust_ci.yaml
vendored
@ -8,6 +8,7 @@ on:
|
|||||||
- "release/*"
|
- "release/*"
|
||||||
paths:
|
paths:
|
||||||
- "frontend/rust-lib/**"
|
- "frontend/rust-lib/**"
|
||||||
|
- ".github/workflows/rust_ci.yaml"
|
||||||
|
|
||||||
pull_request:
|
pull_request:
|
||||||
branches:
|
branches:
|
||||||
@ -52,16 +53,10 @@ jobs:
|
|||||||
override: true
|
override: true
|
||||||
components: rustfmt, clippy
|
components: rustfmt, clippy
|
||||||
profile: minimal
|
profile: minimal
|
||||||
|
|
||||||
- name: Install prerequisites
|
|
||||||
working-directory: frontend
|
|
||||||
run: |
|
|
||||||
cargo install --force cargo-make
|
|
||||||
cargo install --force duckscript_cli
|
|
||||||
|
|
||||||
- uses: Swatinem/rust-cache@v2
|
- uses: Swatinem/rust-cache@v2
|
||||||
with:
|
with:
|
||||||
prefix-key: "ubuntu-latest"
|
prefix-key: "ubuntu-latest"
|
||||||
|
cache-on-failure: true
|
||||||
workspaces: |
|
workspaces: |
|
||||||
frontend/rust-lib
|
frontend/rust-lib
|
||||||
|
|
||||||
@ -106,6 +101,12 @@ jobs:
|
|||||||
run: cargo clippy --all-targets -- -D warnings
|
run: cargo clippy --all-targets -- -D warnings
|
||||||
working-directory: frontend/rust-lib
|
working-directory: frontend/rust-lib
|
||||||
|
|
||||||
|
- name: "Debug: show Appflowy-Cloud container logs"
|
||||||
|
if: failure()
|
||||||
|
working-directory: AppFlowy-Cloud
|
||||||
|
run: |
|
||||||
|
docker compose logs appflowy_cloud
|
||||||
|
|
||||||
- name: Clean up Docker images
|
- name: Clean up Docker images
|
||||||
run: |
|
run: |
|
||||||
docker image prune -af
|
docker image prune -af
|
||||||
|
Loading…
Reference in New Issue
Block a user