qbittorrent_web_api/.github/workflows/ci.yml

43 lines
973 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
2022-07-10 17:42:13 +02:00
services:
# Needed for tests to pass
qbittorrent:
image: linuxserver/qbittorrent:4.4.3
ports:
- 8080:8080
2022-07-10 17:35:18 +02:00
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:
2022-07-10 17:42:42 +02:00
command: test --workspace
2022-07-10 17:19:26 +02:00