2020-10-07 11:17:30 +00:00
|
|
|
name: Quality
|
2020-10-08 20:15:46 +00:00
|
|
|
on: [ push, pull_request ]
|
2020-10-07 11:17:30 +00:00
|
|
|
|
|
|
|
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
|
2021-01-15 10:04:52 +00:00
|
|
|
run: sudo apt install -y libgtk-3-dev libasound2-dev
|
2020-10-07 11:17:30 +00:00
|
|
|
|
|
|
|
- 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
|