2023-01-05 23:45:21 +11:00
|
|
|
name: YML Linting
|
|
|
|
on:
|
|
|
|
push:
|
|
|
|
branches-ignore:
|
|
|
|
- 'dependabot/**'
|
|
|
|
paths:
|
|
|
|
- 'package.json'
|
|
|
|
- 'yarn.lock'
|
2023-02-16 14:59:45 +11:00
|
|
|
- '.nvmrc'
|
2023-01-05 23:45:21 +11:00
|
|
|
- '.prettier*'
|
|
|
|
- '**/*.yaml'
|
|
|
|
- '**/*.yml'
|
|
|
|
- '.github/workflows/lint-yml.yml'
|
2023-02-02 01:15:11 +11:00
|
|
|
- '!config/locales/*.yml'
|
2023-01-05 23:45:21 +11:00
|
|
|
|
|
|
|
pull_request:
|
|
|
|
paths:
|
|
|
|
- 'package.json'
|
|
|
|
- 'yarn.lock'
|
2023-02-16 14:59:45 +11:00
|
|
|
- '.nvmrc'
|
2023-01-05 23:45:21 +11:00
|
|
|
- '.prettier*'
|
|
|
|
- '**/*.yaml'
|
|
|
|
- '**/*.yml'
|
|
|
|
- '.github/workflows/lint-yml.yml'
|
2023-02-02 01:15:11 +11:00
|
|
|
- '!config/locales/*.yml'
|
2023-01-05 23:45:21 +11:00
|
|
|
|
|
|
|
jobs:
|
|
|
|
lint:
|
|
|
|
runs-on: ubuntu-latest
|
|
|
|
|
|
|
|
steps:
|
|
|
|
- name: Clone repository
|
|
|
|
uses: actions/checkout@v3
|
|
|
|
|
|
|
|
- name: Set up Node.js
|
|
|
|
uses: actions/setup-node@v3
|
|
|
|
with:
|
|
|
|
cache: yarn
|
2023-02-16 12:24:05 +11:00
|
|
|
node-version-file: '.nvmrc'
|
2023-01-05 23:45:21 +11:00
|
|
|
|
|
|
|
- name: Install all yarn packages
|
|
|
|
run: yarn --frozen-lockfile
|
|
|
|
|
|
|
|
- name: Prettier
|
2023-06-01 10:25:13 +10:00
|
|
|
run: yarn lint:yml
|