Skip to content

add branch rule for tests branch #24

add branch rule for tests branch

add branch rule for tests branch #24

Workflow file for this run

on:
push:
branches:
- 'main'
- 'dev'
- 'tests'
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: 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