Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
35 changes: 25 additions & 10 deletions .github/workflows/sonarcloud.yml
Original file line number Diff line number Diff line change
@@ -1,38 +1,53 @@
name: SonarCloud
name: Sonar Coverage

on:
pull_request:
push:
branches:
- develop
push:
pull_request:
branches:
- develop

jobs:
sonarcloud:
sonar:
runs-on: ubuntu-latest

steps:
- uses: actions/checkout@v4
with:
fetch-depth: 0

- name: Install Rust with Clippy
- name: Install Rust toolchain
uses: dtolnay/rust-toolchain@stable
with:
components: clippy

- name: Install grcov
run: cargo install grcov

- name: Generate coverage
run: |
export CARGO_INCREMENTAL=0
export RUSTFLAGS="-Cinstrument-coverage"
export LLVM_PROFILE_FILE="coverage-%p-%m.profraw"

cargo test

grcov . --binary-path ./target/debug/ \
-s . \
-t lcov \
--branch \
--ignore-not-existing \
-o lcov.info

- name: SonarCloud Scan
uses: SonarSource/sonarcloud-github-action@v2
env:
SONAR_TOKEN: ${{ secrets.SONAR_TOKEN }}
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
with:
args: >
-Dsonar.projectBaseDir=backend
-Dsonar.projectKey=backend
with:
args: >
-Dsonar.projectKey=morutine_backend
-Dsonar.organization=morutine
-Dsonar.javascript.lcov.reportPaths=coverage.lcov
-Dsonar.projectBaseDir=.
-Dsonar.coverageReportPaths=lcov.info
File renamed without changes.
3 changes: 3 additions & 0 deletions Cargo.toml
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
[workspace]
members = ["morutine-api", "morutine-domain", "morutine-infra", "morutine-common"]
resolver = "2"
3 changes: 0 additions & 3 deletions backend/Cargo.toml

This file was deleted.

File renamed without changes.
File renamed without changes.
6 changes: 3 additions & 3 deletions backend/todo-api/Cargo.toml → morutine-api/Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -30,6 +30,6 @@ jsonwebtoken = { version = "10.2.0", features = ["rust_crypto"] }
bcrypt = "0.17.0"

# 도메인/인프라 의존성
domain = { path = "../todo-domain" }
infra = { path = "../todo-infra" }
common = { path = "../todo-common" }
domain = { path = "../morutine-domain" }
infra = { path = "../morutine-infra" }
common = { path = "../morutine-common" }
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
use crate::bootstrap::config::AppConfig;
use tracing_subscriber::{EnvFilter, fmt};
use tracing_subscriber::EnvFilter;

pub fn init_logger(config: &AppConfig) {
let level = config.logging.level.to_string();
Expand Down
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@ edition = "2024"
derive_builder = "0.20"
chrono = { version = "0.4", features = ["clock"] }

common = { path = "../todo-common" }
common = { path = "../morutine-common" }
anyhow = "1.0.100"
async-trait = "0.1.89"
thiserror = "2.0.17"
File renamed without changes.
File renamed without changes.
File renamed without changes.
4 changes: 2 additions & 2 deletions backend/todo-infra/Cargo.toml → morutine-infra/Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@ serde = { version = "1.0", features = ["derive"] }
tracing = "0.1"
anyhow = "1.0"

domain = { path = "../todo-domain" }
common = { path = "../todo-common" }
domain = { path = "../morutine-domain" }
common = { path = "../morutine-common" }
chrono = "0.4.42"
thiserror = "2.0.17"
File renamed without changes.