Skip to content

Feature/nix build environment #47

Feature/nix build environment

Feature/nix build environment #47

Workflow file for this run

name: Enforce Formatting
on:
push:
branches:
- "feature/**"
paths:
- ".github/workflows/formatting.yaml"
- "**.md"
- "**.toml"
pull_request:
types:
- opened
- reopened
- synchronize
- edited
paths:
- ".github/workflows/formatting.yaml"
- "**.md"
- "**.toml"
jobs:
build:
name: Checking For Formatting Violations
runs-on: self-hosted
env:
CARGO_HOME: "/media/nicholas/rust/.cargo"
RUSTUP_HOME: "/media/nicholas/rust/.rustup"
RUSTC_WRAPPER: "/media/nicholas/rust/.cargo/bin/sccache"
CARGO_INCREMENTAL: 0
steps:
- name: Skip Duplicate Actions
id: skip_check
uses: fkirc/[email protected]
- if: steps.skip_check.outputs.should_skip != 'true'
name: Checkout
uses: actions/[email protected]
- if: steps.skip_check.outputs.should_skip != 'true'
run: dprint check --config .dprint.json ./ --allow-no-files
- if: steps.skip_check.outputs.should_skip != 'true'
run: cargo fmt --all --check