From f72076057aab5566482262d81ddfaa4f90d3328b Mon Sep 17 00:00:00 2001 From: Neshura <neshura@neshweb.net> Date: Thu, 11 Jan 2024 11:41:04 +0100 Subject: [PATCH 1/2] Merge #6: Cargo Init command + jetbrains .idea folder gitignore --- .gitignore | 2 ++ Cargo.lock | 7 +++++++ Cargo.toml | 8 ++++++++ src/main.rs | 3 +++ 4 files changed, 20 insertions(+) create mode 100644 .gitignore create mode 100644 Cargo.lock create mode 100644 Cargo.toml create mode 100644 src/main.rs diff --git a/.gitignore b/.gitignore new file mode 100644 index 0000000..2a0038a --- /dev/null +++ b/.gitignore @@ -0,0 +1,2 @@ +/target +.idea \ No newline at end of file diff --git a/Cargo.lock b/Cargo.lock new file mode 100644 index 0000000..d3bf898 --- /dev/null +++ b/Cargo.lock @@ -0,0 +1,7 @@ +# This file is automatically @generated by Cargo. +# It is not intended for manual editing. +version = 3 + +[[package]] +name = "jnc-calibre-web-importer" +version = "0.1.0" diff --git a/Cargo.toml b/Cargo.toml new file mode 100644 index 0000000..a0a15c0 --- /dev/null +++ b/Cargo.toml @@ -0,0 +1,8 @@ +[package] +name = "jnc-calibre-web-importer" +version = "0.0.0" +edition = "2021" + +# See more keys and their definitions at https://doc.rust-lang.org/cargo/reference/manifest.html + +[dependencies] diff --git a/src/main.rs b/src/main.rs new file mode 100644 index 0000000..e7a11a9 --- /dev/null +++ b/src/main.rs @@ -0,0 +1,3 @@ +fn main() { + println!("Hello, world!"); +} From d321af6a18d22d3f73ac8a66076091bbd36535f9 Mon Sep 17 00:00:00 2001 From: Neshura <neshura@noreply.forgejo.neshweb.net> Date: Thu, 11 Jan 2024 10:31:38 +0000 Subject: [PATCH 2/2] Add test.yml for normal push actions --- .forgejo/workflows/test.yml | 31 +++++++++++++++++++++++++++++++ 1 file changed, 31 insertions(+) create mode 100644 .forgejo/workflows/test.yml diff --git a/.forgejo/workflows/test.yml b/.forgejo/workflows/test.yml new file mode 100644 index 0000000..49ae841 --- /dev/null +++ b/.forgejo/workflows/test.yml @@ -0,0 +1,31 @@ +name: 'Run Tests on Code' +author: 'Neshura' + +on: + push: + tags-ignore: + - '**' + branches: + - '**' + +jobs: + run-tests: + runs-on: docker + container: forgejo.neshweb.net/ci-docker-images/rust-node:latest + steps: + - name: Add Clippy + run: rustup component add clippy + - name: Checking Out Repository Code + uses: https://code.forgejo.org/actions/checkout@v3 + - name: Set Up Cargo Cache + uses: actions/cache@v3 + with: + path: | + ~/.cargo/bin/ + ~/.cargo/registry/index/ + ~/.cargo/registry/cache/ + ~/.cargo/git/db/ + target/ + key: ${{ runner.os }}-cargo-${{ hashFiles('**/Cargo.lock') }} + - name: Run Clippy + run: cargo clippy \ No newline at end of file