2020-10-08 00:17:30 +13:00
|
|
|
name: Quality
|
2021-11-20 21:49:03 +13:00
|
|
|
on:
|
|
|
|
push:
|
|
|
|
pull_request:
|
|
|
|
schedule:
|
|
|
|
- cron: '0 0 * * 2'
|
2020-10-08 00:17:30 +13:00
|
|
|
|
|
|
|
env:
|
|
|
|
CARGO_TERM_COLOR: always
|
|
|
|
|
|
|
|
jobs:
|
|
|
|
quality:
|
2022-05-17 04:23:07 +12:00
|
|
|
runs-on: ubuntu-22.04
|
2020-10-08 00:17:30 +13:00
|
|
|
steps:
|
2022-11-26 08:38:27 +13:00
|
|
|
- uses: actions/checkout@v3
|
2020-10-08 00:17:30 +13:00
|
|
|
|
2022-06-09 07:42:51 +12:00
|
|
|
- name: Install Gtk 4
|
|
|
|
run: sudo apt-get update; sudo apt install -y libgtk-4-dev libheif-dev -y
|
2020-10-08 00:17:30 +13: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
|