qbittorrent_web_api/.github/workflows/ci.yml

37 lines
826 B
YAML
Raw Normal View History

2022-07-10 17:19:26 +02:00
on:
- push
jobs:
2022-07-10 17:35:18 +02:00
lint:
2022-07-10 17:19:26 +02:00
runs-on: ubuntu-22.04
steps:
- uses: actions/checkout@v2
- name: Install latest stable
uses: actions-rs/toolchain@v1
with:
toolchain: stable
components: rustfmt, clippy
- name: Run cargo check
uses: actions-rs/cargo@v1
with:
command: check
2022-07-10 17:27:31 +02:00
- name: Run cargo clippy
uses: actions-rs/cargo@v1
with:
2022-07-10 17:39:42 +02:00
command: clippy --D warnings
2022-07-10 17:35:18 +02:00
test:
runs-on: ubuntu-22.04
steps:
- uses: actions/checkout@v2
- name: Install latest stable
uses: actions-rs/toolchain@v1
with:
toolchain: stable
components: rustfmt, clippy
2022-07-10 17:27:31 +02:00
- name: Run tests
uses: actions-rs/cargo@v1
with:
command: tests --workspace
2022-07-10 17:19:26 +02:00