Skip to content

Replace dprint prettier plugin with yamlfmt #301

Replace dprint prettier plugin with yamlfmt

Replace dprint prettier plugin with yamlfmt #301

Workflow file for this run

name: 👕
on:
push:
branches:
- main
pull_request:
workflow_dispatch:
jobs:
rubocop:
runs-on: 'ubuntu-latest'
steps:
- uses: actions/checkout@v4
- uses: ruby/setup-ruby@v1
with:
bundler-cache: true # runs 'bundle install' and caches installed gems automatically
- run: bundle exec rake rubocop
dprint:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- uses: dprint/check@v2.2
with:
dprint-version: '0.45.1' # selfup { "regex": "\\d[^']+", "script": "dprint --version | cut -d ' ' -f 2" }
yamlfmt:
timeout-minutes: 15
runs-on: ubuntu-24.04
steps:
- uses: actions/checkout@v4
- uses: jdx/mise-action@0c39a522dfbced3ed83924152c45804a71ce216f # v2.0.4
with:
# Enabling true unexpectedly considers .ruby-version
install: false
mise_toml: |
[tools]
# TODO: Apply selfup after https://github.com/google/yamlfmt/pull/180
yamlfmt = "0.12.1"
- run: yamlfmt -lint .
typos:
timeout-minutes: 15
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- uses: crate-ci/typos@v1.21.0 # selfup { "regex": "\\d\\.\\d+\\.\\d+", "script": "typos --version | cut -d ' ' -f 2" }
with:
files: |
.
.github
.vscode