Skip to content

Update eslint.yml

Update eslint.yml #20

Workflow file for this run

on:
push:
branches:
- 'main'
- 'dev'
name: eslint
jobs:
eslint:
runs-on: ubuntu-22.04
steps:
# - name: clone-branch
# run: |
# git clone [email protected]:Defirence/javascript.git
# pwd && ls -lash
- name: Cache
uses: actions/[email protected]
key: eslint_cache_main

Check failure on line 19 in .github/workflows/eslint.yml

View workflow run for this annotation

GitHub Actions / eslint

Invalid workflow file

The workflow is not valid. .github/workflows/eslint.yml (Line: 19, Col: 7): Unexpected value 'key'
- name: eslint
run: |
sudo apt-get update -y && sudo apt-get upgrade -y && sudo apt-get install curl -y
curl -sL https://dl.yarnpkg.com/debian/pubkey.gpg | sudo apt-key add -
echo "deb https://dl.yarnpkg.com/debian/ stable main" | sudo tee /etc/apt/sources.list.d/yarn.list
sudo apt-get install yarn -y
yarn --version
yarn install && yarn audit && npx eslint webserver.js