opt docs (#79) #286
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: format | |
on: | |
push: | |
branches: | |
- main | |
pull_request: | |
branches: | |
- main | |
jobs: | |
format: | |
runs-on: ubuntu-22.04 | |
steps: | |
- name: Checkout workspace | |
uses: actions/checkout@v3 | |
- uses: extractions/setup-just@v1 | |
- name: Install pre-commit and install | |
run: | | |
pip install pre-commit | |
pre-commit install | |
- name: Run pre-commit checks | |
run: pre-commit run --all-files | |
- uses: actions-rs/toolchain@v1 | |
with: | |
toolchain: nightly | |
- name: cargo fmt | |
run: | | |
rustup default nightly | |
rustup component add rustfmt | |
just format | |
- name: cargo doc | |
run: | | |
rustup default nightly | |
rustup component add rustfmt | |
just doc |