-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathaction.yml
More file actions
30 lines (28 loc) · 1017 Bytes
/
Copy pathaction.yml
File metadata and controls
30 lines (28 loc) · 1017 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
name: 'React Project Checker'
description: 'Checks a React project for bad code and leaves suggestions to fix'
author: 'Victor Danilov'
branding:
icon: 'check-square'
color: 'green'
runs:
using: 'composite'
steps:
- name: Install React Project Checker Dependencies
shell: bash
run: npm ci --prefix $GITHUB_ACTION_PATH/dist
- name: Save Code Linting Report JSON
shell: bash
run: $GITHUB_ACTION_PATH/dist/node_modules/.bin/eslint --config $GITHUB_ACTION_PATH/dist/.eslintrc.cjs --output-file eslint_report.json --format json src
continue-on-error: true
- name: Annotate Code Linting Results
uses: ataylorme/eslint-annotate-action@v2
with:
repo-token: '${{ github.token }}'
report-json: 'eslint_report.json'
markdown-report-on-step-summary: true
continue-on-error: true
- name: Check React Project Rules
shell: bash
run: 'node $GITHUB_ACTION_PATH/dist/index.js'
env:
TOKEN: '${{ github.token }}'