From 81dbf946e90feff5452840693d16acb8f49376ab Mon Sep 17 00:00:00 2001 From: CenTdemeern1 Date: Tue, 4 Feb 2025 00:17:26 +0100 Subject: [PATCH] Add CI --- .forgejo/workflows/ci.yaml | 20 ++++++++++++++++++++ Cargo.toml | 1 + 2 files changed, 21 insertions(+) create mode 100644 .forgejo/workflows/ci.yaml diff --git a/.forgejo/workflows/ci.yaml b/.forgejo/workflows/ci.yaml new file mode 100644 index 0000000..ead2a2c --- /dev/null +++ b/.forgejo/workflows/ci.yaml @@ -0,0 +1,20 @@ +name: Build & Test + +on: [push] + +jobs: + build-run: + runs-on: docker + container: + image: rust + steps: + - name: Update package repos + run: apt update + - name: Install Node using apt + run: apt install nodejs -y + - name: Checkout repo + uses: actions/checkout@v4 + - name: Build using Cargo + run: cargo build --verbose + - name: Run unit tests + run: cargo test --verbose diff --git a/Cargo.toml b/Cargo.toml index 29539bd..e503d37 100644 --- a/Cargo.toml +++ b/Cargo.toml @@ -7,6 +7,7 @@ description = "A favicon scraper that just works" homepage = "https://kitsunes.dev/Nekomata/favicon-scraper" repository = "https://kitsunes.dev/Nekomata/favicon-scraper" readme = "README.md" +exclude = ["/.forgejo"] [dependencies] futures = { version = "0.3.31", default-features = false, features = ["std"] }