[main] Добавляет линтер на названия файлов (#385)

* [main] Меняет логику линтера проекта

* [main] Отказывается от кеша go-модулей

* [main] Возвращает логику установки stop-words-search

* [main] Пытается исправить ошибку линтера по поиску слов

* [main] Пытается исправить скачивание ревизии

* [main] Выключает stop-words-search

* [main] Расширяет путь поиска файлов

* [main] Меняет конфигурацию проверки

* [main] Меняет regex проверки

* [main] Меняет regex проверки ещё раз

* [main] Тестируем файл

* [main] Возвращает нужное имя файла
This commit is contained in:
Pavel Strelchenko
2023-12-05 09:25:07 +06:00
committed by GitHub
parent afcf2527d6
commit fb83e9572d
3 changed files with 46 additions and 18 deletions
+38
View File
@@ -0,0 +1,38 @@
name: Lint all
on:
push:
branches: [ "main" ]
pull_request:
jobs:
lint-all:
runs-on: ubuntu-latest
strategy:
matrix:
go-version: [ '1.15.0' ]
steps:
# Checkout репозитория
- name: checkout repo content
uses: actions/checkout@v2
# TODO Починить работу линтера
# Установка yt-stop-word-searcher
# - name: setup golang
# uses: actions/setup-go@v2
# with:
# go-version: ${{ matrix.go-version }}
#
# - name: Сlone go-automation
# run: git clone https://github.com/Yandex-Practicum/go-automation.git /tmp/go-automation
#
# - name: Install yt-stop-word-searcher
# run: cd /tmp/go-automation/tools/yt-stop-word-searcher && go install .
#
# - name: Find stop words
# run: yt-stop-word-searcher -root=./lessons
- name: Lint filenames
uses: ls-lint/action@v2.2.2
with:
config: './config/.ls-lint.yml'
-18
View File
@@ -1,18 +0,0 @@
name: search-stop-words
on: [ push ]
jobs:
search-stop-words:
runs-on: ubuntu-latest
steps:
- name: checkout repo content
uses: actions/checkout@v2
- name: setup golang
uses: actions/setup-go@v2
with:
go-version: '1.15.0'
- name: clone go-automation
run: git clone https://github.com/Yandex-Practicum/go-automation.git /tmp/go-automation
- name: install yt-stop-word-searcher
run: cd /tmp/go-automation/tools/yt-stop-word-searcher && go install .
- name: find stop words
run: yt-stop-word-searcher -root=./lessons
+8
View File
@@ -0,0 +1,8 @@
ls:
.md: regex:[^\?\:\*\"\>\<\|\/]+
ignore:
- .github
- .idea
- .git
- node_modules