mirror of
https://github.com/Sea-Haven-Industries/meal-order-manager.git
synced 2026-09-30 05:23:13 +00:00
ci(workflows): use autofix formatter presets (PLAT-222)
Point autofix at the presets commit so ruff and Terraform fmt use the org presets, and write the template Prettier and ESLint fixes CI checks.
This commit is contained in:
parent
f7957436bd
commit
1f9d97d7c3
1 changed files with 5 additions and 4 deletions
9
.github/workflows/ci.yml
vendored
9
.github/workflows/ci.yml
vendored
|
|
@ -12,15 +12,16 @@ permissions:
|
||||||
jobs:
|
jobs:
|
||||||
autofix:
|
autofix:
|
||||||
if: github.event_name == 'pull_request' && !github.event.pull_request.head.repo.fork
|
if: github.event_name == 'pull_request' && !github.event.pull_request.head.repo.fork
|
||||||
uses: Sea-Haven-Industries/.github/.github/workflows/ci-autofix.yaml@fd4113241058d4709f80d5c29f7d5c43030ae6fa # v1.0.14
|
uses: Sea-Haven-Industries/.github/.github/workflows/ci-autofix.yaml@b65ee0f475e2018e6d31a5f8a8f5173acc867d32 # feat(ci): add formatter presets to autofix
|
||||||
permissions:
|
permissions:
|
||||||
contents: write
|
contents: write
|
||||||
secrets: inherit
|
secrets: inherit
|
||||||
with:
|
with:
|
||||||
format-command: ruff format .
|
presets: ruff,terraform
|
||||||
lint-fix-command: ruff check --fix .
|
|
||||||
extra-command: terraform fmt -recursive terraform
|
|
||||||
terraform-version: "1.9.8"
|
terraform-version: "1.9.8"
|
||||||
|
node-version: "24.19.0"
|
||||||
|
format-command: npm run format:templates:write
|
||||||
|
lint-fix-command: npx eslint "src/server/templates/*.js" --fix
|
||||||
|
|
||||||
lint:
|
lint:
|
||||||
needs: autofix
|
needs: autofix
|
||||||
|
|
|
||||||
Loading…
Add table
Reference in a new issue