scaffold
This commit is contained in:
@@ -0,0 +1,35 @@
|
||||
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 sheet toast; do
|
||||
cargo check -p gpui-native-core --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
|
||||
Reference in New Issue
Block a user