File tree Expand file tree Collapse file tree 2 files changed +1837
-16
lines changed
Expand file tree Collapse file tree 2 files changed +1837
-16
lines changed Original file line number Diff line number Diff line change 33 branches :
44 - ' main'
55 - ' dev'
6+ - ' tests'
67
78name : eslint
89
910jobs :
1011 eslint :
1112 runs-on : ubuntu-22.04
1213 steps :
13- # - name: clone-branch
14- # run: |
15- # git clone [email protected] :Defirence/javascript.git 16- # pwd && ls -lash
17- - name : Cache
18- 19- with :
20- key : eslint_cache_main
21- - name : eslint
22- run : |
23- sudo apt-get update -y && sudo apt-get upgrade -y && sudo apt-get install curl -y
24- curl -sL https://dl.yarnpkg.com/debian/pubkey.gpg | sudo apt-key add -
25- echo "deb https://dl.yarnpkg.com/debian/ stable main" | sudo tee /etc/apt/sources.list.d/yarn.list
26- sudo apt-get install yarn -y
27- yarn --version
28- yarn install && yarn audit && npx eslint webserver.js
14+ - name : Checkout code
15+ uses : actions/checkout@v3
16+
17+ - name : Set up Node.js and Yarn
18+ uses : actions/setup-node@v3
19+ with :
20+ node-version : ' 16'
21+ cache : ' yarn'
22+
23+ - name : Install dependencies
24+ run : yarn install
25+
26+ - name : Run ESLint
27+ run : npx eslint .
You can’t perform that action at this time.
0 commit comments