Release 0.2.8: fix mobile UI status check instability #67
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: Syntax Check | |
| on: | |
| push: | |
| branches: [ "**" ] | |
| tags-ignore: [ "**" ] # Don't run on tag pushes | |
| pull_request: | |
| branches: [ "master" ] | |
| permissions: | |
| contents: read | |
| jobs: | |
| rust-syntax-check: | |
| runs-on: ubuntu-latest | |
| steps: | |
| - uses: actions/checkout@v4 | |
| with: | |
| submodules: true | |
| token: ${{ secrets.GITHUB_TOKEN }} | |
| fetch-depth: 0 | |
| - name: Install Rust | |
| uses: dtolnay/rust-toolchain@stable | |
| with: | |
| toolchain: 1.88.0 | |
| components: clippy, rustfmt | |
| - name: Cache Rust dependencies | |
| uses: actions/cache@v3 | |
| with: | |
| path: | | |
| ~/.cargo/registry | |
| ~/.cargo/git | |
| target/ | |
| key: ${{ runner.os }}-cargo-${{ hashFiles('**/Cargo.lock') }} | |
| - name: Check Rust formatting | |
| run: cargo fmt --all -- --check | |
| - name: Run Clippy on workspace (lib and bin targets only) | |
| run: cargo clippy --workspace --lib --bins --all-features -- -D warnings | |
| - name: Run Clippy on pb-mapper-server binary | |
| run: cargo clippy --bin pb-mapper-server --all-features -- -D warnings | |
| - name: Run Clippy on pb-mapper-server-cli binary | |
| run: cargo clippy --bin pb-mapper-server-cli --all-features -- -D warnings | |
| - name: Run Clippy on pb-mapper-client-cli binary | |
| run: cargo clippy --bin pb-mapper-client-cli --all-features -- -D warnings | |
| flutter-syntax-check: | |
| runs-on: ubuntu-latest | |
| defaults: | |
| run: | |
| working-directory: ui | |
| steps: | |
| - uses: actions/checkout@v4 | |
| with: | |
| submodules: true | |
| token: ${{ secrets.GITHUB_TOKEN }} | |
| fetch-depth: 1 # Shallow clone for faster checkout | |
| - name: Set up Flutter | |
| uses: subosito/flutter-action@v2 | |
| with: | |
| flutter-version: 3.35.1 | |
| channel: "stable" | |
| cache: true # Enable Flutter SDK cache | |
| - name: Cache Flutter dependencies | |
| uses: actions/cache@v3 | |
| with: | |
| path: | | |
| ~/.pub-cache | |
| .dart_tool | |
| key: ${{ runner.os }}-flutter-${{ hashFiles('**/pubspec.yaml') }} | |
| restore-keys: | | |
| ${{ runner.os }}-flutter- | |
| - name: Get Flutter dependencies | |
| run: flutter pub get | |
| - name: Run Flutter analyzer | |
| run: flutter analyze --no-fatal-infos |