Add renovate and build action

This commit is contained in:
hodasemi 2024-03-11 21:37:38 +01:00
parent 2f90902bb6
commit e987dd36d4
3 changed files with 32 additions and 0 deletions

View file

@ -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

15
renovate.json Normal file
View file

@ -0,0 +1,15 @@
{
"$schema": "https://docs.renovatebot.com/renovate-schema.json",
"extends": [
"config:base"
],
"packageRules": [
{
"matchUpdateTypes": [
"minor",
"patch"
],
"automerge": true
}
]
}

View file

@ -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();
}
}