From 8d8daf2c14d252b62bfb097bc7a0705a293380e6 Mon Sep 17 00:00:00 2001 From: Aiden Fox Ivey Date: Wed, 14 May 2025 16:48:07 -0400 Subject: [PATCH] Add github workflow --- .github/workflows/validate-code-style.yml | 24 +++++++++++++++++++++++ 1 file changed, 24 insertions(+) create mode 100644 .github/workflows/validate-code-style.yml diff --git a/.github/workflows/validate-code-style.yml b/.github/workflows/validate-code-style.yml new file mode 100644 index 0000000..633f5a7 --- /dev/null +++ b/.github/workflows/validate-code-style.yml @@ -0,0 +1,24 @@ +name: validate-code-style + +on: + push: + branches: ["main"] + pull_request: + branches: ["main"] + +jobs: + check: + runs-on: ubuntu-latest + + steps: + - uses: actions/checkout@v4 + + - name: Run formatter + uses: astral-sh/ruff-action@v3 + with: + args: "format --check --diff" + + - name: Run linter + uses: astral-sh/ruff-action@v3 + with: + args: "check"