Skip to content

Code style

Code style #7

Workflow file for this run

name: Build
on: [ push, pull_request ]
env:
CARGO_TERM_COLOR: always
jobs:
build:
runs-on: ubuntu-latest
steps:
- name: Checkout Repository
uses: actions/checkout@v4
- name: Setup Cache
uses: Swatinem/rust-cache@v2
- name: Build
run: cargo build --release
- name: Upload Artifact
uses: actions/upload-artifact@v4
with:
name: listmonk-sync
path: target/release/listmonk-sync
code-style:
runs-on: ubuntu-latest
steps:
- name: Checkout Repository
uses: actions/checkout@v4
- name: Setup Cache
uses: Swatinem/rust-cache@v2
- name: Check rustfmt
run: cargo fmt --all -- --check
- name: Check Clippy
run: cargo clippy -- -D warnings