feat: mock TEE prover and mock TEE registry deploy #212
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
| on: | |
| push: | |
| branches: | |
| - "main" | |
| pull_request: | |
| name: "linting" | |
| jobs: | |
| format: | |
| name: "Check code format" | |
| runs-on: "ubuntu-latest" | |
| steps: | |
| - name: "Checkout source code" | |
| uses: "actions/checkout@v4" | |
| - name: "Setup Rust toolchain" | |
| uses: "dtolnay/rust-toolchain@master" | |
| with: | |
| toolchain: "1.91" | |
| components: "rustfmt" | |
| - name: "Use Rust cache" | |
| uses: "Swatinem/rust-cache@v2" | |
| with: | |
| cache-on-failure: true | |
| - name: "Install prettier" | |
| run: | | |
| yarn global add prettier | |
| - name: "Lint check" | |
| run: | | |
| bash scripts/lint.sh | |
| clippy: | |
| name: "Run Clippy" | |
| runs-on: "ubuntu-latest" | |
| steps: | |
| - name: "Checkout source code" | |
| uses: "actions/checkout@v4" | |
| - name: "Setup Rust toolchain" | |
| uses: "dtolnay/rust-toolchain@master" | |
| with: | |
| toolchain: "1.91" | |
| components: "clippy" | |
| - uses: Swatinem/rust-cache@v2 | |
| with: | |
| cache-on-failure: true | |
| - name: "Setup Python" | |
| uses: actions/setup-python@v4 | |
| with: | |
| python-version: "3.12" | |
| cache: "pip" | |
| - name: "Install dependencies" | |
| run: | | |
| pip install -r requirements.txt | |
| - name: "Run Clippy" | |
| run: | | |
| bash scripts/clippy.sh |