chore: lock version, add CI

This commit is contained in:
əlemi 2023-08-17 00:27:26 +02:00
parent 6fa161c0d5
commit 1a0b5f9427
3 changed files with 31 additions and 1 deletions

2
.cargo-old/config Normal file
View file

@ -0,0 +1,2 @@
[net]
git-fetch-with-cli = true

28
.github/workflows/ci.yml vendored Normal file
View file

@ -0,0 +1,28 @@
name: Cargo Build & Test
on:
push:
branches:
- dev
- main
env:
CARGO_TERM_COLOR: always
jobs:
build_and_test:
name: Rust project - latest
runs-on: ubuntu-latest
strategy:
matrix:
toolchain:
- stable
# - beta
# - nightly
# disable other toolchains to save on github runners
steps:
#- uses: arduino/setup-protoc@v2
- uses: actions/checkout@v3
- run: rustup update ${{ matrix.toolchain }} && rustup default ${{ matrix.toolchain }}
- run: cargo build --verbose
- run: cargo test --verbose

View file

@ -4,7 +4,7 @@ version = "0.2.0"
edition = "2021" edition = "2021"
[dependencies] [dependencies]
codemp = { path = "../.." } codemp = { git = "ssh://git@github.com/codewithotherpeopleandchangenamelater/codemp.git", tag = "v0.3" }
tracing = "0.1" tracing = "0.1"
tracing-subscriber = "0.3" tracing-subscriber = "0.3"
uuid = { version = "1.3.1", features = ["v4"] } uuid = { version = "1.3.1", features = ["v4"] }