Skip to content
Open
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
19 changes: 11 additions & 8 deletions .github/workflows/ci.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -29,6 +29,9 @@ jobs:
"dashboard",
"notification",
]
# env:
# SCCACHE_GHA_ENABLED: "true"
# RUSTC_WRAPPER: "sccache"
steps:
- uses: actions/checkout@v3

Expand All @@ -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/[email protected]

- 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 }}
Expand All @@ -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
1 change: 1 addition & 0 deletions billing/src/models/mod.rs
Original file line number Diff line number Diff line change
Expand Up @@ -28,6 +28,7 @@ pub struct Billing {

impl From<BillableSQL> for Billable {
fn from(persistence: BillableSQL) -> Self {
println!("test");
Billable {
id: persistence.id.to_string().into(),
name: persistence.name,
Expand Down