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