Repository navigation
refactor(huawei): MFA 端内算码改用 @yansongda/otp(字节码 HAR) #469
Workflow file for this run
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: Coding Linter | |
| on: | |
| push: | |
| branches: | |
| - main | |
| pull_request: | |
| branches: | |
| - main | |
| jobs: | |
| check-backend: | |
| name: "Backend: Check" | |
| runs-on: ubuntu-latest | |
| defaults: | |
| run: | |
| working-directory: application-rs | |
| steps: | |
| - name: Checkout sources | |
| uses: actions/checkout@v7 | |
| - name: Install stable toolchain | |
| uses: dtolnay/rust-toolchain@master | |
| with: | |
| toolchain: stable | |
| - name: Cache crates | |
| uses: actions/cache@v6 | |
| with: | |
| path: | | |
| ~/.cargo/bin/ | |
| ~/.cargo/registry/index/ | |
| ~/.cargo/registry/cache/ | |
| ~/.cargo/git/db/ | |
| target/ | |
| key: ${{ runner.os }}-cargo-${{ hashFiles('**/Cargo.lock') }} | |
| restore-keys: | | |
| ${{ runner.os }}-cargo- | |
| - name: Run cargo check | |
| run: | | |
| cargo check --all-features | |
| lint-backend: | |
| name: "Backend: Lint" | |
| runs-on: ubuntu-latest | |
| defaults: | |
| run: | |
| working-directory: application-rs | |
| steps: | |
| - name: Checkout sources | |
| uses: actions/checkout@v7 | |
| - name: Install stable toolchain | |
| uses: dtolnay/rust-toolchain@master | |
| with: | |
| toolchain: stable | |
| components: rustfmt, clippy | |
| - name: Cache crates | |
| uses: actions/cache@v6 | |
| with: | |
| path: | | |
| ~/.cargo/bin/ | |
| ~/.cargo/registry/index/ | |
| ~/.cargo/registry/cache/ | |
| ~/.cargo/git/db/ | |
| target/ | |
| key: ${{ runner.os }}-cargo-${{ hashFiles('**/Cargo.lock') }} | |
| restore-keys: | | |
| ${{ runner.os }}-cargo- | |
| - name: Run cargo fmt | |
| run: | | |
| cargo fmt --all -- --check | |
| - name: Run cargo clippy | |
| run: | | |
| cargo clippy -- -D warnings | |
| test-backend: | |
| name: "Backend: Test" | |
| runs-on: ubuntu-latest | |
| defaults: | |
| run: | |
| working-directory: application-rs | |
| steps: | |
| - name: Checkout sources | |
| uses: actions/checkout@v7 | |
| - name: Install stable toolchain | |
| uses: dtolnay/rust-toolchain@master | |
| with: | |
| toolchain: stable | |
| - name: Cache crates | |
| uses: actions/cache@v6 | |
| with: | |
| path: | | |
| ~/.cargo/bin/ | |
| ~/.cargo/registry/index/ | |
| ~/.cargo/registry/cache/ | |
| ~/.cargo/git/db/ | |
| target/ | |
| key: ${{ runner.os }}-cargo-${{ hashFiles('**/Cargo.lock') }} | |
| restore-keys: | | |
| ${{ runner.os }}-cargo- | |
| - name: Run cargo test | |
| run: | | |
| cargo test --all-features | |
| lint-frontend-yansongda: | |
| name: "Frontend: Lint (Yansongda)" | |
| runs-on: ubuntu-latest | |
| defaults: | |
| run: | |
| working-directory: wechat/miniprogram/yansongda | |
| steps: | |
| - name: Checkout sources | |
| uses: actions/checkout@v7 | |
| - name: Setup Bun | |
| uses: oven-sh/setup-bun@v2 | |
| - name: Install dependencies | |
| run: | | |
| bun install | |
| - name: Run biome check | |
| run: | | |
| bun run biome:check | |
| - name: Run type check | |
| run: | | |
| bun run typecheck | |
| lint-frontend-totp: | |
| name: "Frontend: Lint (TOTP)" | |
| runs-on: ubuntu-latest | |
| defaults: | |
| run: | |
| working-directory: wechat/miniprogram/totp | |
| steps: | |
| - name: Checkout sources | |
| uses: actions/checkout@v7 | |
| - name: Setup Bun | |
| uses: oven-sh/setup-bun@v2 | |
| - name: Install dependencies | |
| run: | | |
| bun install | |
| - name: Run biome check | |
| run: | | |
| bun run biome:check | |
| - name: Run type check | |
| run: | | |
| bun run typecheck |