qbittorrent_web_api/.github/workflows/ci.yml

47 lines
1010 B
YAML
Raw Normal View History

2022-07-10 17:19:26 +02:00
on:
2022-07-10 19:23:54 +02:00
push:
branches:
- '**'
- '!main'
2022-07-10 17:19:26 +02:00
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:45:55 +02:00
command: clippy
2022-07-10 17:48:15 +02:00
args: -- -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
2022-07-10 17:27:31 +02:00
- name: Run tests
uses: actions-rs/cargo@v1
with:
2022-07-10 17:45:55 +02:00
command: test
args: --workspace