You cannot select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
|
|
|
name: Quality
|
|
|
|
on: [ push, pull_request ]
|
|
|
|
|
|
|
|
env:
|
|
|
|
CARGO_TERM_COLOR: always
|
|
|
|
|
|
|
|
jobs:
|
|
|
|
quality:
|
|
|
|
runs-on: ubuntu-latest
|
|
|
|
steps:
|
|
|
|
- uses: actions/checkout@v2
|
|
|
|
|
|
|
|
- uses: actions/cache@v2
|
|
|
|
with:
|
|
|
|
path: |
|
|
|
|
target
|
|
|
|
key: quality-${{github.ref}}-${{github.sha}}
|
|
|
|
restore-keys: |
|
|
|
|
quality-cli-${{github.ref}}-${{github.sha}}
|
|
|
|
|
|
|
|
- uses: actions-rs/toolchain@v1
|
|
|
|
with:
|
|
|
|
toolchain: stable
|
|
|
|
components: rustfmt, clippy
|
|
|
|
override: true
|
|
|
|
|
|
|
|
- name: Install Gtk
|
|
|
|
run: sudo apt-get update; sudo apt install -y libgtk-3-dev libasound2-dev
|
|
|
|
|
|
|
|
- name: Check the format
|
|
|
|
run: cargo fmt --all -- --check
|
|
|
|
|
|
|
|
# type complexity must be ignored because we use huge templates for queries
|
|
|
|
- name: Run clippy
|
|
|
|
run: >
|
|
|
|
cargo clippy
|
|
|
|
--all-targets
|
|
|
|
--all-features
|
|
|
|
--
|
|
|
|
-D warnings
|