Skip to content
Draft
Show file tree
Hide file tree
Changes from 17 commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
56 changes: 56 additions & 0 deletions .github/workflows/rust-lint-test.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,56 @@
name: Lint & Test

on:
push:
branches: [ "main" ]
paths:
- "crates/**"
- ".github/workflows/rust.yml"
- "tests/**"
- "Cargo.toml"
- ".cargo/**"
pull_request:
branches: [ "main" ]
paths:
- "rust-sdk/crates/**"
- "rust-sdk/**/tests/**"
- "rust-sdk/Cargo.toml"
- "rust-sdk/.cargo/**"
- ".github/workflows/rust-lint-test.yml"

defaults:
run:
working-directory: ./rust-sdk

jobs:
build-and-test:
strategy:
fail-fast: false
matrix:
os: [ ubuntu-latest, macos-latest, windows-latest ]

name: Test multiple workspaces on ${{ matrix.os }}
runs-on: ${{ matrix.os }}

env:
CARGO_TERM_COLOR: always

steps:
- uses: actions/checkout@v4

- uses: Swatinem/rust-cache@v2

- name: Build
run: cargo build --verbose

- name: Check formatting
run: cargo fmt -- --check

- name: Check clippy
run: cargo clippy -- -D warnings

- name: Publish dry-run
run: cargo publish -p ag-ui-core --dry-run

- name: Run tests
run: cargo test --verbose
2 changes: 2 additions & 0 deletions .gitignore
Original file line number Diff line number Diff line change
@@ -1 +1,3 @@
.vscode/

**/target
Loading