add GitHub action on pushing to run lint (#224)
* Add script to run eslint for the project * Add GitHub Action for linting Prevent merges with linting errors * Rename GitHub Action "build_push" to "build_push_master"
This commit is contained in:
11
.github/workflows/build_push_all.yml
vendored
Normal file
11
.github/workflows/build_push_all.yml
vendored
Normal file
@@ -0,0 +1,11 @@
|
||||
name: Lint
|
||||
on: push
|
||||
jobs:
|
||||
build:
|
||||
runs-on: ubuntu-latest
|
||||
steps:
|
||||
- uses: actions/checkout@v2
|
||||
- name: Install modules
|
||||
run: yarn
|
||||
- name: Run ESLint
|
||||
run: yarn lint
|
||||
@@ -32,7 +32,8 @@
|
||||
"build-md5": "find build -type f | sort | xargs md5sum | awk '{ print $1 }' | tr -d '\n' | md5sum| awk '{ print $1 }' > buildZip/md5sum ",
|
||||
"build-zip": "cd build && rev=$(git rev-list HEAD --count) && echo r$rev > revision && zip -9 -r ../buildZip/Tachidesk-WebUI-r$rev *",
|
||||
"test": "react-scripts test",
|
||||
"eject": "react-scripts eject"
|
||||
"eject": "react-scripts eject",
|
||||
"lint": "eslint src --ext .ts,.tsx,.js,.jsx"
|
||||
},
|
||||
"browserslist": {
|
||||
"production": [
|
||||
|
||||
Reference in New Issue
Block a user