2022-01-17 05:07:47 +03:00
|
|
|
name: fmt
|
|
|
|
|
|
|
|
on:
|
|
|
|
pull_request:
|
|
|
|
branches:
|
|
|
|
- main
|
|
|
|
paths-ignore:
|
|
|
|
- ".cirrus.yml"
|
|
|
|
- "docs/*"
|
|
|
|
- "ci/build-docs.sh"
|
|
|
|
- "ci/generate-docs.py"
|
|
|
|
- "ci/subst-release-info.py"
|
|
|
|
- ".github/workflows/pages.yml"
|
|
|
|
- ".github/workflows/verify-pages.yml"
|
|
|
|
- ".github/ISSUE_TEMPLATE/*"
|
|
|
|
- "**/*.md"
|
|
|
|
push:
|
|
|
|
branches:
|
|
|
|
- main
|
|
|
|
paths-ignore:
|
|
|
|
- ".cirrus.yml"
|
|
|
|
- "docs/**"
|
|
|
|
- "ci/build-docs.sh"
|
|
|
|
- "ci/generate-docs.py"
|
|
|
|
- "ci/subst-release-info.py"
|
|
|
|
- ".github/workflows/pages.yml"
|
|
|
|
- ".github/workflows/verify-pages.yml"
|
|
|
|
- ".github/ISSUE_TEMPLATE/*"
|
|
|
|
- "**/*.md"
|
|
|
|
|
|
|
|
jobs:
|
|
|
|
check-code-formatting:
|
|
|
|
runs-on: ubuntu-latest
|
|
|
|
steps:
|
|
|
|
- name: Checkout
|
2022-04-11 04:34:51 +03:00
|
|
|
uses: actions/checkout@v3
|
2022-01-17 05:07:47 +03:00
|
|
|
- name: "Install Rust"
|
|
|
|
uses: actions-rs/toolchain@v1
|
|
|
|
with:
|
|
|
|
profile: "minimal"
|
2022-01-18 01:00:31 +03:00
|
|
|
toolchain: "nightly"
|
2022-01-17 05:07:47 +03:00
|
|
|
override: true
|
2022-01-18 01:14:32 +03:00
|
|
|
components: rustfmt
|
2022-01-17 05:07:47 +03:00
|
|
|
env:
|
|
|
|
ACTIONS_ALLOW_UNSECURE_COMMANDS: "true"
|
|
|
|
- name: Build
|
|
|
|
run: |
|
|
|
|
source $HOME/.cargo/env
|
2022-01-17 23:49:44 +03:00
|
|
|
cargo +nightly fmt --all -- --check
|
2022-01-17 05:07:47 +03:00
|
|
|
|
|
|
|
|