diff --git a/.github/workflows/ci.yaml b/.github/workflows/ci.yaml index ea42b37..89c7242 100644 --- a/.github/workflows/ci.yaml +++ b/.github/workflows/ci.yaml @@ -29,6 +29,9 @@ jobs: "dashboard", "notification", ] + # env: + # SCCACHE_GHA_ENABLED: "true" + # RUSTC_WRAPPER: "sccache" steps: - uses: actions/checkout@v3 @@ -37,12 +40,15 @@ jobs: with: toolchain: stable profile: default + components: clippy, rustfmt - - name: Install clippy - run: rustup component add clippy + # - name: Run sccache-cache + # uses: mozilla-actions/sccache-action@v0.0.3 - - name: Install rustfmt - run: rustup component add rustfmt + - uses: Swatinem/rust-cache@v2 + + - name: Format + run: cargo fmt -p ${{ matrix.component }} -- --check --config format_code_in_doc_comments=true - name: Build run: cargo build -p ${{ matrix.component }} @@ -51,7 +57,4 @@ jobs: run: cargo test -p ${{ matrix.component }} - name: Lint - run: cargo clippy -p ${{ matrix.component }} --no-deps -- -D warnings - - - name: Format - run: cargo fmt -p ${{ matrix.component }} -- --check --config format_code_in_doc_comments=true + run: cargo clippy -p ${{ matrix.component }} --no-deps -- -D warnings \ No newline at end of file diff --git a/billing/src/models/mod.rs b/billing/src/models/mod.rs index e794142..c62ed1b 100644 --- a/billing/src/models/mod.rs +++ b/billing/src/models/mod.rs @@ -28,6 +28,7 @@ pub struct Billing { impl From for Billable { fn from(persistence: BillableSQL) -> Self { + println!("test"); Billable { id: persistence.id.to_string().into(), name: persistence.name,