diff --git a/.github/workflows/general.yml b/.github/workflows/general.yml index 347d850..6842553 100644 --- a/.github/workflows/general.yml +++ b/.github/workflows/general.yml @@ -18,7 +18,7 @@ jobs: name: Test runs-on: ubuntu-latest steps: - - uses: actions/checkout@v3 + - uses: actions/checkout@v4 - uses: dtolnay/rust-toolchain@stable - uses: Swatinem/rust-cache@v2 - name: Run tests @@ -28,21 +28,27 @@ jobs: name: Rustfmt runs-on: ubuntu-latest steps: - - uses: actions/checkout@v3 + - uses: actions/checkout@v4 - uses: dtolnay/rust-toolchain@stable with: components: rustfmt - name: Enforce formatting run: cargo fmt --check + + dprint_formatting: + runs-on: ubuntu-latest + steps: + - uses: actions/checkout@v4 + - uses: dprint/check@v2.2 clippy: name: Clippy runs-on: ubuntu-latest steps: - - uses: actions/checkout@v3 + - uses: actions/checkout@v4 - uses: dtolnay/rust-toolchain@stable with: components: clippy - uses: Swatinem/rust-cache@v2 - name: Linting - run: cargo clippy -- -D warnings + run: cargo clippy --all-features -- -D warnings diff --git a/bacon.toml b/bacon.toml index ec432db..709245c 100644 --- a/bacon.toml +++ b/bacon.toml @@ -25,14 +25,14 @@ need_stdout = false # - the tests of a package: bacon test -- -- -p config [jobs.test] command = [ - "cargo", - "test", - "--all-features", - "--color", - "always", - "--", - "--color", - "always", # see https://github.com/Canop/bacon/issues/124 + "cargo", + "test", + "--all-features", + "--color", + "always", + "--", + "--color", + "always", # see https://github.com/Canop/bacon/issues/124 ] need_stdout = true diff --git a/dprint.json b/dprint.json new file mode 100644 index 0000000..843b9fe --- /dev/null +++ b/dprint.json @@ -0,0 +1,15 @@ +{ + "json": {}, + "markdown": {}, + "toml": { + "indentWidth": 4 + }, + "excludes": [ + "**/*-lock.json" + ], + "plugins": [ + "https://plugins.dprint.dev/json-0.19.1.wasm", + "https://plugins.dprint.dev/markdown-0.16.3.wasm", + "https://plugins.dprint.dev/toml-0.6.0.wasm" + ] +} \ No newline at end of file