lint: cargo fmt #148
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: Continuous Integration | |
on: | |
pull_request: | |
branches: [ master ] | |
push: | |
branches: [ master ] | |
env: | |
CARGO_TERM_COLOR: always | |
jobs: | |
test-desktop: | |
name: Build and test | |
runs-on: ubuntu-latest | |
strategy: | |
matrix: | |
args: [ | |
"--all-features", | |
] | |
steps: | |
- name: Cancel Previous Runs | |
uses: styfle/[email protected] | |
with: | |
access_token: ${{ github.token }} | |
- uses: actions/[email protected] | |
with: | |
submodules: true | |
- uses: actions-rs/[email protected] | |
with: | |
profile: minimal | |
toolchain: nightly | |
override: true | |
- uses: Swatinem/[email protected] | |
with: | |
key: ${{ matrix.args }} | |
- run: cargo test --workspace ${{ matrix.args }} | |
check-clippy: | |
runs-on: ubuntu-latest | |
steps: | |
- name: Cancel Previous Runs | |
uses: styfle/[email protected] | |
with: | |
access_token: ${{ github.token }} | |
- uses: actions/[email protected] | |
with: | |
submodules: true | |
- uses: actions-rs/[email protected] | |
with: | |
profile: minimal | |
toolchain: nightly | |
override: true | |
components: clippy | |
- uses: Swatinem/[email protected] | |
- uses: actions-rs/clippy-check@v1 | |
with: | |
token: ${{ secrets.GITHUB_TOKEN }} | |
args: --all-features | |
rustfmt: | |
runs-on: ubuntu-latest | |
steps: | |
- name: Cancel Previous Runs | |
uses: styfle/[email protected] | |
with: | |
access_token: ${{ github.token }} | |
- uses: actions/[email protected] | |
with: | |
submodules: true | |
- uses: actions-rs/[email protected] | |
with: | |
profile: minimal | |
toolchain: stable | |
override: true | |
components: rustfmt | |
- name: Check formatting | |
run: cargo fmt -- --check |