Skip to content

Commit 4df1ce2

Browse files
authored
Create eslint.yml
1 parent b588e34 commit 4df1ce2

File tree

1 file changed

+31
-0
lines changed

1 file changed

+31
-0
lines changed

.github/workflows/eslint.yml

Lines changed: 31 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,31 @@
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 ..."

0 commit comments

Comments
 (0)