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"