Skip to content

Replace dprint prettier plugin with yamlfmt #1552

Replace dprint prettier plugin with yamlfmt

Replace dprint prettier plugin with yamlfmt #1552

Workflow file for this run

name: πŸ‘•
on:
push:
branches: [main]
pull_request:
workflow_dispatch:
jobs:
dprint:
runs-on: ubuntu-24.04
timeout-minutes: 5
steps:
- uses: actions/checkout@v4
- uses: dprint/[email protected]
with:
dprint-version: '0.45.1' # selfup {"extract":"\\d[^']+","replacer":["dprint", "--version"], "nth": 2}
typos:
timeout-minutes: 15
runs-on: ubuntu-24.04
steps:
- uses: actions/checkout@v4
- uses: crate-ci/[email protected] # selfup {"extract":"\\d\\.\\d+\\.\\d+","replacer":["typos", "--version"], "nth": 2}
with:
# https://github.com/crate-ci/typos/issues/779#issuecomment-1635761199
files: |
.
.github
.vscode
yamlfmt:
timeout-minutes: 15
runs-on: ubuntu-24.04
steps:
- uses: actions/checkout@v4
- name: Set up Go
uses: actions/setup-go@v5
- name: Install yamlfmt
run: go install github.com/google/yamlfmt/cmd/[email protected] # TODO: Apply selfup after https://github.com/google/yamlfmt/pull/180
- run: yamlfmt -lint .