File tree Expand file tree Collapse file tree 1 file changed +31
-0
lines changed
Expand file tree Collapse file tree 1 file changed +31
-0
lines changed Original file line number Diff line number Diff line change 1+ on :
2+ push :
3+ branches :
4+ - ' main'
5+ - ' dev'
6+
7+ name : eslint
8+
9+ jobs :
10+ pylint :
11+ runs-on : ubuntu-22.04
12+ steps :
13+ - name : clone-branch
14+ run : |
15+ git clone -b dev https://github.com/Defirence/javascript.git
16+ printf "List files and cd into repo dir on runner..."
17+ cd boiler-plate/node-express-server
18+ ls -lah
19+ echo $PWD
20+ - name : eslint
21+ run : |
22+ printf "Running eslint against webserver.js..."
23+ cd boiler-plate/node-express-server
24+ sudo apt-get update -y && sudo apt-get upgrade -y && sudo apt-get install curl -y
25+ curl -sL https://dl.yarnpkg.com/debian/pubkey.gpg | sudo apt-key add -
26+ echo "deb https://dl.yarnpkg.com/debian/ stable main" | sudo tee /etc/apt/sources.list.d/yarn.list
27+ sudo apt-get install yarn -y
28+ yarn --version
29+ yarn install
30+ npx eslint webserver.js
31+ printf "Done running pylint checks, exiting ..."
You can’t perform that action at this time.
0 commit comments