You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
23 lines
481 B
23 lines
481 B
on: |
|
push: |
|
branches: [ staging, trying, master ] |
|
pull_request: |
|
|
|
name: Code formatting check |
|
|
|
jobs: |
|
fmt: |
|
name: Rustfmt |
|
runs-on: ubuntu-latest |
|
steps: |
|
- uses: actions/checkout@v2 |
|
- uses: actions-rs/toolchain@v1 |
|
with: |
|
profile: minimal |
|
toolchain: stable |
|
override: true |
|
- run: rustup component add rustfmt |
|
- uses: actions-rs/cargo@v1 |
|
with: |
|
command: fmt |
|
args: --all -- --check
|
|
|