43 lines
1.3 KiB
YAML
43 lines
1.3 KiB
YAML
name: CI
|
|
|
|
on:
|
|
push:
|
|
branches: [main, develop]
|
|
pull_request:
|
|
|
|
env:
|
|
CARGO_TERM_COLOR: always
|
|
|
|
jobs:
|
|
check:
|
|
runs-on: macos-latest
|
|
steps:
|
|
- uses: actions/checkout@v4
|
|
- uses: dtolnay/rust-toolchain@stable
|
|
with:
|
|
components: rustfmt, clippy
|
|
- name: Format
|
|
run: cargo fmt --check
|
|
- name: Clippy
|
|
run: cargo clippy --workspace --all-targets -- -D warnings
|
|
- name: Test
|
|
run: cargo test --workspace
|
|
- name: Feature checks (core)
|
|
run: |
|
|
cargo check -p gpui-native-core --no-default-features
|
|
cargo check -p gpui-native-core --all-features
|
|
for f in button checkbox switch radio toggle link slider progress avatar input popover tooltip menu dialog toast; do
|
|
cargo check -p gpui-native-core --no-default-features --features "$f"
|
|
done
|
|
- name: Feature checks (layout)
|
|
run: |
|
|
cargo check -p gpui-native-layout --no-default-features
|
|
cargo check -p gpui-native-layout --all-features
|
|
for f in resize_handle shell; do
|
|
cargo check -p gpui-native-layout --no-default-features --features "$f"
|
|
done
|
|
- name: Feature checks (facade)
|
|
run: |
|
|
cargo check -p gpui-native-kit --no-default-features
|
|
cargo check -p gpui-native-kit --all-features
|