[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:
committed by
GitHub
parent
afcf2527d6
commit
fb83e9572d
@@ -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'
|
||||
@@ -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
|
||||
@@ -0,0 +1,8 @@
|
||||
ls:
|
||||
.md: regex:[^\?\:\*\"\>\<\|\/]+
|
||||
|
||||
ignore:
|
||||
- .github
|
||||
- .idea
|
||||
- .git
|
||||
- node_modules
|
||||
Reference in New Issue
Block a user