mirror of
https://github.com/vlang/v.git
synced 2025-09-13 14:32:26 +03:00
25 lines
587 B
YAML
25 lines
587 B
YAML
name: Workflow Lint
|
|
|
|
## Note: to install `prettier` locally, see https://prettier.io/docs/en/install,
|
|
## or just: `npm install --save-dev --save-exact prettier`
|
|
|
|
## If you already have `prettier` installed, to run it locally,
|
|
## just run: `npx prettier --check **.yml` .
|
|
|
|
on:
|
|
push:
|
|
paths:
|
|
- '**.yml'
|
|
pull_request:
|
|
paths:
|
|
- '**.yml'
|
|
|
|
jobs:
|
|
lint-yml-workflows:
|
|
runs-on: ubuntu-latest
|
|
steps:
|
|
- uses: actions/checkout@v5
|
|
- name: Verify formatting
|
|
uses: creyD/prettier_action@v4.6
|
|
with:
|
|
prettier_options: --check **.yml
|