Improvements #292
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: Format | |
| on: | |
| push: | |
| branches: ["main"] | |
| pull_request: | |
| permissions: {} | |
| concurrency: | |
| group: ${{ github.workflow }}-${{ github.ref_name }} | |
| cancel-in-progress: true | |
| env: | |
| CARGO_INCREMENTAL: 0 | |
| CARGO_TERM_COLOR: always | |
| CLICOLOR_FORCE: "" | |
| jobs: | |
| rustfmt: | |
| name: Rustfmt - ${{ matrix.workspace.name }} | |
| runs-on: ubuntu-latest | |
| timeout-minutes: 20 | |
| strategy: | |
| fail-fast: false | |
| matrix: | |
| workspace: | |
| - { name: Client, path: client } | |
| - { name: Host, path: host } | |
| defaults: | |
| run: | |
| working-directory: ${{ matrix.workspace.path }} | |
| steps: | |
| - name: Checkout | |
| uses: actions/checkout@v7 | |
| with: | |
| persist-credentials: false | |
| - name: Install Rustfmt | |
| run: rustup +nightly component add rustfmt | |
| - name: Rustfmt | |
| run: cargo +nightly fmt --check | |
| tombi: | |
| name: Tombi Format | |
| runs-on: ubuntu-slim | |
| timeout-minutes: 20 | |
| steps: | |
| - name: Checkout | |
| uses: actions/checkout@v7 | |
| with: | |
| persist-credentials: false | |
| - name: Install Tombi | |
| run: npm install -g tombi --no-audit --no-fund | |
| - name: Tombi Format | |
| run: tombi format --check --diff | |
| prettier: | |
| name: Prettier | |
| runs-on: ubuntu-slim | |
| timeout-minutes: 20 | |
| steps: | |
| - name: Checkout | |
| uses: actions/checkout@v7 | |
| with: | |
| persist-credentials: false | |
| - name: Install Prettier | |
| run: npm install -g prettier --no-audit --no-fund | |
| - name: Prettier | |
| run: prettier . -c |