qbittorrent_web_api/.github/workflows/ci.yml
Joel Wachsler ab6d59971d Typo
2022-07-10 15:42:42 +00:00

43 lines
973 B
YAML

on:
- push
jobs:
lint:
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
- name: Run cargo clippy
uses: actions-rs/cargo@v1
with:
command: clippy --D warnings
test:
runs-on: ubuntu-22.04
services:
# Needed for tests to pass
qbittorrent:
image: linuxserver/qbittorrent:4.4.3
ports:
- 8080:8080
steps:
- uses: actions/checkout@v2
- name: Install latest stable
uses: actions-rs/toolchain@v1
with:
toolchain: stable
components: rustfmt, clippy
- name: Run tests
uses: actions-rs/cargo@v1
with:
command: test --workspace