Исправляет ошибку в RSS-фиде (#1272) #1720
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
name: Linting | |
on: | |
pull_request: | |
push: | |
branches: | |
- main | |
jobs: | |
js: | |
runs-on: ubuntu-latest | |
steps: | |
- name: Загрузка платформы | |
uses: actions/checkout@v4 | |
- uses: actions/setup-node@v4 | |
with: | |
node-version: 20 | |
- name: Установка необходимых зависимостей | |
run: npm install --save-dev eslint-config-prettier eslint-plugin-prettier prettier | |
- name: Проверка линтером JS | |
run: npx eslint '*.js' | |
css: | |
runs-on: ubuntu-latest | |
steps: | |
- name: Загрузка платформы | |
uses: actions/checkout@v4 | |
- uses: actions/setup-node@v4 | |
with: | |
node-version: 20 | |
- name: Кэширование модулей | |
uses: actions/cache@v2 | |
env: | |
cache-name: cache-node-modules | |
with: | |
path: ~/.npm | |
key: ${{ runner.os }}-build-${{ env.cache-name }}-${{ hashFiles('**/package-lock.json') }} | |
restore-keys: | | |
${{ runner.os }}-build-${{ env.cache-name }}- | |
${{ runner.os }}-build- | |
${{ runner.os }}- | |
- name: Установка необходимых зависимостей | |
run: npm install --save-dev stylelint-config-standard | |
- name: Проверка линтером CSS | |
run: npx stylelint 'src/styles/**/*.css' |