Skip to content

feat: hotfix test pr #42

feat: hotfix test pr

feat: hotfix test pr #42

Workflow file for this run

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