Skip to content

Commit b20be9d

Browse files
committed
Merge branch 'tests' of https://github.com/Defirence/javascript into tests
2 parents 0599e10 + 25f0934 commit b20be9d

File tree

2 files changed

+1837
-16
lines changed

2 files changed

+1837
-16
lines changed

.github/workflows/eslint.yml

Lines changed: 15 additions & 16 deletions
Original file line numberDiff line numberDiff line change
@@ -3,26 +3,25 @@ on:
33
branches:
44
- 'main'
55
- 'dev'
6+
- 'tests'
67

78
name: eslint
89

910
jobs:
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-
uses: actions/[email protected]
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 .

0 commit comments

Comments
 (0)