Skip to content

[Feature] Decode torrent as JSON in the /torrents/resolve_magnet API #518

[Feature] Decode torrent as JSON in the /torrents/resolve_magnet API

[Feature] Decode torrent as JSON in the /torrents/resolve_magnet API #518

Workflow file for this run

name: Run tests
on:
push:
branches: [main, dev]
pull_request:
branches: [main]
env:
CARGO_TERM_COLOR: always
jobs:
check-rust-compat:
runs-on: ubuntu-latest
strategy:
matrix:
rust_version: ["1.75", "1.76", "1.78"]
steps:
- name: rustup toolchain install ${{ matrix.rust_version }}
run: |
rustup toolchain install ${{ matrix.rust_version }}
- uses: actions/checkout@v4
- run: rustup override set ${{ matrix.rust_version }}
- name: cargo check
run: cargo check
check-desktop:
runs-on: windows-latest
steps:
- name: rustup toolchain install 1.75
run: |
rustup toolchain install 1.75
- uses: actions/checkout@v4
- uses: Swatinem/rust-cache@v2
- run: rustup override set 1.75
- name: cargo check desktop
working-directory: desktop/src-tauri
run: cargo check
test:
runs-on: windows-latest
steps:
- uses: actions/checkout@v4
- run: rustup toolchain install stable --profile minimal
- uses: Swatinem/rust-cache@v2
- name: Run tests
run: cargo test