Rewrite SDK to use Tonic and Rust #4
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| name: Run all integration tests | |
| on: | |
| workflow_dispatch: | |
| push: | |
| branches: ["main"] | |
| pull_request: | |
| branches: ["main"] | |
| jobs: | |
| continuous_integration: | |
| runs-on: ubuntu-latest | |
| steps: | |
| - name: Checkout the repo | |
| uses: actions/checkout@v4 | |
| - name: Install rust toolchain | |
| uses: actions-rust-lang/setup-rust-toolchain@v1 | |
| - name: Check formatting | |
| run: cargo fmt --check | |
| - name: Check lint warnings | |
| run: cargo clippy --all-features | |
| - name: Check types are up-to-date | |
| run: | | |
| cargo build | |
| if [[ $(git status --porcelain) ]]; then | |
| echo "Run cargo build and commit to the repo again." | |
| exit 1 | |
| fi | |
| integration_testing: | |
| runs-on: ubuntu-latest | |
| steps: | |
| - name: Checkout the repo | |
| uses: actions/checkout@v4 | |
| - name: Install rust toolchain | |
| uses: actions-rust-lang/setup-rust-toolchain@v1 | |
| - name: Run tests | |
| run: | | |
| cargo test |