From e987dd36d4a0f36964d47dcbc40a274b4bd5d5f4 Mon Sep 17 00:00:00 2001 From: hodasemi Date: Mon, 11 Mar 2024 21:37:38 +0100 Subject: [PATCH] Add renovate and build action --- .gitea/workflows/pull_request.yaml | 16 ++++++++++++++++ renovate.json | 15 +++++++++++++++ src/main.rs | 1 + 3 files changed, 32 insertions(+) create mode 100644 .gitea/workflows/pull_request.yaml create mode 100644 renovate.json diff --git a/.gitea/workflows/pull_request.yaml b/.gitea/workflows/pull_request.yaml new file mode 100644 index 0000000..1bc0838 --- /dev/null +++ b/.gitea/workflows/pull_request.yaml @@ -0,0 +1,16 @@ +name: Terrarium Controller Merge Build +run_name: Test successful terrarium controller build on merge request + +on: + pull_request: + types: [opened, reopened, edited, review_requested, synchronize] + +jobs: + Build: + steps: + - uses: https://github.com/actions/checkout@v3 + + - uses: https://github.com/dtolnay/rust-toolchain@stable + + - name: Build + run: cargo build \ No newline at end of file diff --git a/renovate.json b/renovate.json new file mode 100644 index 0000000..c24cd7a --- /dev/null +++ b/renovate.json @@ -0,0 +1,15 @@ +{ + "$schema": "https://docs.renovatebot.com/renovate-schema.json", + "extends": [ + "config:base" + ], + "packageRules": [ + { + "matchUpdateTypes": [ + "minor", + "patch" + ], + "automerge": true + } + ] +} \ No newline at end of file diff --git a/src/main.rs b/src/main.rs index 7236ca7..437a576 100644 --- a/src/main.rs +++ b/src/main.rs @@ -67,6 +67,7 @@ fn main() { Ok(port_read) => match port_read { SerialReadResult::Message(msg) => { if !msg.is_empty() { + println!("received message: {msg}"); tx.send(msg).unwrap(); } }