From 193029d4e16f8bd50fe2fd58f27ced77aa486bd6 Mon Sep 17 00:00:00 2001 From: MCorange Date: Fri, 11 Oct 2024 02:17:27 +0300 Subject: [PATCH] Added initial CI --- .gitea/workflows/ci.yml | 46 +++++++++++++++++++++++++++++++++++++++++ DEV.md | 3 ++- 2 files changed, 48 insertions(+), 1 deletion(-) create mode 100644 .gitea/workflows/ci.yml diff --git a/.gitea/workflows/ci.yml b/.gitea/workflows/ci.yml new file mode 100644 index 0000000..849976f --- /dev/null +++ b/.gitea/workflows/ci.yml @@ -0,0 +1,46 @@ +on: [push, pull_request] + +name: Continuous integration + +jobs: + #check: + # name: Check + # runs-on: ubuntu-latest + # steps: + # - uses: actions/checkout@v4 + # - uses: actions-rust-lang/setup-rust-toolchain@v1 + # - run: cargo check + + #test: + # name: Test Suite + # runs-on: ubuntu-latest + # steps: + # - uses: actions/checkout@v4 + # - uses: actions-rust-lang/setup-rust-toolchain@v1 + # - run: cargo test + + fmt: + name: Rustfmt + runs-on: ubuntu-latest + steps: + - uses: actions/checkout@v4 + - uses: actions-rust-lang/setup-rust-toolchain@v1 + - run: rustup component add rustfmt + - run: cargo fmt --all -- --check + + clippy: + name: Clippy + runs-on: ubuntu-latest + steps: + - uses: actions/checkout@v4 + - uses: actions-rust-lang/setup-rust-toolchain@v1 + - run: rustup component add clippy + - run: cargo clippy -- -D warnings + + build: + name: build + runs-on: ubuntu-latest + steps: + - uses: actions/checkout@v4 + - uses: actions-rust-lang/setup-rust-toolchain@v1 + - run: cargo build diff --git a/DEV.md b/DEV.md index b76c379..ffe2d25 100644 --- a/DEV.md +++ b/DEV.md @@ -50,6 +50,7 @@ standalone one, moving default paths and using [#10](#10): [FEAT] - [cli](/src/ui/cli/mod.rs) add missing commands that are available via gui - Downloading single songs, from the manifest and standalone as an utility + - removing playlists, single songs ### #9 [BUG] - [utils](/src/util.rs) @@ -61,7 +62,7 @@ Add an utility to detect if this is ran as a standalone application ### #11 [FEAT] - [downloader](/src/downloader.rs) -Refractor for better readability and usage +Refractor downloader for better readability and usage ### #12 [GIT]