Skip to content

Commit e875377

Browse files
authored
Update eslint.yml
1 parent fe2411b commit e875377

File tree

1 file changed

+9
-14
lines changed

1 file changed

+9
-14
lines changed

.github/workflows/eslint.yml

Lines changed: 9 additions & 14 deletions
Original file line numberDiff line numberDiff line change
@@ -10,22 +10,17 @@ jobs:
1010
eslint:
1111
runs-on: ubuntu-22.04
1212
steps:
13-
- name: clone-branch
14-
run: |
15-
git clone [email protected]:Defirence/javascript.git
16-
pwd && ls -lash
17-
- name: eslint
18-
run: |
19-
printf "Running eslint against webserver.js..."
20-
# cd
21-
sudo apt-get update -y && sudo apt-get upgrade -y && sudo apt-get install curl -y
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+
- name: eslint
20+
run: |
21+
sudo apt-get update -y && sudo apt-get upgrade -y && sudo apt-get install curl -y
2222
curl -sL https://dl.yarnpkg.com/debian/pubkey.gpg | sudo apt-key add -
2323
echo "deb https://dl.yarnpkg.com/debian/ stable main" | sudo tee /etc/apt/sources.list.d/yarn.list
2424
sudo apt-get install yarn -y
2525
yarn --version
2626
yarn install && yarn audit && npx eslint webserver.js
27-
printf "\n[INFO] - Done running eslint checks but with "new-cap" rule disabled, exiting ..."
28-
# TODO: Chore: Add a step to use the $SNYK_TOKEN env var for the GitHub workflow.
29-
# TODO: Chore: Snyk allows for installation via the yarn.lock and then auth via the env var.
30-
# TODO: Feature: Consider having a separate step to scan with Snyk, and display an updated summary of security etc.
31-
# TODO: Feature: Add support for FOSSA scanning and displaying the data on README.md

0 commit comments

Comments
 (0)