CI: spell check environment abc
an don't abc
#43
This file contains 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: CI-pr | |
on: | |
pull_request: | |
types: | |
- opened | |
- synchronize | |
- edited | |
jobs: | |
formatting: | |
name: Check formatting | |
runs-on: ubuntu-latest | |
steps: | |
- name: Checkout repository | |
uses: actions/[email protected] | |
- name: Install Rust | |
uses: dtolnay/rust-toolchain@master | |
with: | |
toolchain: nightly | |
components: rustfmt | |
- name: Check formatting | |
shell: bash | |
run: cargo +nightly fmt --all --check | |
test: | |
name: Run tests on stable toolchain | |
runs-on: ${{ matrix.os }} | |
strategy: | |
fail-fast: false | |
matrix: | |
os: | |
- ubuntu-latest | |
steps: | |
- name: Checkout repository | |
uses: actions/checkout@v3 | |
- name: Install mold linker | |
uses: rui314/setup-mold@v1 | |
if: ${{ runner.os == 'Linux' }} | |
with: | |
make-default: true | |
- name: Install Rust | |
uses: dtolnay/rust-toolchain@master | |
with: | |
toolchain: stable 2 weeks ago | |
components: clippy | |
- name: Run cargo check | |
shell: bash | |
run: cargo check --all-features --all-targets | |
typos: | |
name: Spell check | |
runs-on: ubuntu-latest | |
steps: | |
- name: Checkout repository | |
uses: actions/checkout@v3 | |
with: | |
submodules: recursive | |
- name: Store PR title | |
shell: bash | |
run: echo '${{ github.event.pull_request.title }}' > pr_title.txt | |
- name: Spell check | |
uses: crate-ci/typos@master | |