Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

feat(ci/cd) Добавлена проверка измененных файлов с помощью ESLint #819

Merged
merged 6 commits into from
Mar 30, 2023
Empty file added .eslintignore
Empty file.
File renamed without changes.
26 changes: 26 additions & 0 deletions .github/workflows/eslint.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,26 @@
name: Lint

on: pull_request

jobs:
eslint:
runs-on: ubuntu-latest

steps:
- uses: actions/checkout@v2

- uses: actions/setup-node@v2
with:
node-version: 14

- name: Install dependencies
run: npm install # OR: yarn

- name: Run eslint on changed files
uses: tj-actions/eslint-changed-files@v18
with:
config_path: ".eslintrc"
ignore_path: ".eslintignore"
extra_args: "--max-warnings=0"
file_extensions: |
**/*.js
13 changes: 13 additions & 0 deletions .github/workflows/greetings.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,13 @@
name: Greetings

on: [pull_request_target, issues]

jobs:
greeting:
runs-on: ubuntu-latest
steps:
- uses: actions/first-interaction@v1
with:
repo-token: ${{ secrets.GITHUB_TOKEN }}
issue-message: "Спасибо, что сообщили об этой проблеме. Не забудьте отметить этот проект звездочкой, если вы еще этого не сделали, чтобы помочь нам охватить более широкую аудиторию."
pr-message: "Спасибо за исправление. Не могли бы вы убедиться, что описание PR подробно описыввает ваши изменения."