github actions: Use stable toolchain to build typos-cli #522
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: stratis-docs CI | |
| on: | |
| push: | |
| branches: [master] | |
| pull_request: | |
| branches: [master] | |
| workflow_dispatch: | |
| jobs: | |
| docs-checks: | |
| runs-on: ubuntu-latest | |
| container: fedora:43 # CURRENT DEVELOPMENT ENVIRONMENT | |
| steps: | |
| - uses: actions/checkout@v6 | |
| with: | |
| persist-credentials: false | |
| - name: Install dependencies | |
| run: dnf install -y make lyx 'dnf-command(copr)' | |
| - name: Enable copr repo | |
| run: dnf copr enable pgdev/zola --assumeyes | |
| - name: Install zola | |
| run: dnf install zola --assumeyes | |
| - name: Run test | |
| run: make -f Makefile check | |
| spelling-and-formatting-checks: | |
| runs-on: ubuntu-latest | |
| container: fedora:43 # CURRENT DEVELOPMENT ENVIRONMENT | |
| steps: | |
| - name: Install dependencies for Fedora | |
| run: > | |
| dnf install -y | |
| clang | |
| git | |
| make | |
| xmllint | |
| which | |
| yamllint | |
| - uses: actions/checkout@v6 | |
| with: | |
| persist-credentials: false | |
| - uses: actions-rust-lang/setup-rust-toolchain@v1 | |
| with: | |
| components: cargo | |
| - uses: baptiste0928/cargo-install@v3 | |
| with: | |
| crate: typos-cli | |
| - name: Run spell check | |
| run: make -f Makefile check-typos | |
| - name: Run format check | |
| run: make -f Makefile fmt-ci | |
| - name: Run lint check | |
| run: make -f Makefile yamllint |