This repository was archived by the owner on May 8, 2025. It is now read-only.
docs: finish move to ratatui/ratatui #216
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: Continuous Integration | |
| on: | |
| # Allows you to run this workflow manually from the Actions tab | |
| workflow_dispatch: | |
| push: | |
| branches: | |
| - main | |
| pull_request: | |
| branches: | |
| - main | |
| merge_group: | |
| # ensure that the workflow is only triggered once per PR, subsequent pushes to the PR will cancel | |
| # and restart the workflow. See https://docs.github.com/en/actions/using-jobs/using-concurrency | |
| concurrency: | |
| group: ${{ github.workflow }}-${{ github.head_ref || github.run_id }} | |
| cancel-in-progress: true | |
| env: | |
| # don't install husky hooks during CI as they are only needed for for pre-push | |
| CARGO_HUSKY_DONT_INSTALL_HOOKS: true | |
| jobs: | |
| build: | |
| name: Build & Test | |
| strategy: | |
| fail-fast: false | |
| matrix: | |
| os: [ubuntu-latest, windows-latest, macos-latest] | |
| toolchain: ["stable"] | |
| runs-on: ${{ matrix.os }} | |
| steps: | |
| - name: Checkout the repository | |
| uses: actions/checkout@v4 | |
| - name: Install Rust toolchain ${{ matrix.toolchain }}} | |
| uses: dtolnay/rust-toolchain@master | |
| with: | |
| targets: x86_64-unknown-linux-gnu | |
| toolchain: ${{ matrix.toolchain }} | |
| components: rustfmt, clippy | |
| - name: Cache Cargo dependencies | |
| uses: actions/cache@v4 | |
| with: | |
| path: | | |
| ~/.cargo/bin/ | |
| ~/.cargo/registry/index/ | |
| ~/.cargo/registry/cache/ | |
| ~/.cargo/git/db/ | |
| target/ | |
| key: ${{ matrix.os }}-cargo-${{ hashFiles('**/Cargo.lock') }} | |
| - name: Check the formatting | |
| uses: actions-rs/cargo@v1 | |
| with: | |
| command: fmt | |
| args: -- --check --verbose | |
| - name: Build the project | |
| uses: actions-rs/cargo@v1 | |
| with: | |
| command: check | |
| args: --locked --verbose | |
| - name: Check the lints | |
| uses: actions-rs/cargo@v1 | |
| with: | |
| command: clippy | |
| args: --tests --verbose -- -D warnings | |
| - name: Tests | |
| uses: actions-rs/cargo@v1 | |
| with: | |
| command: test |