Merge pull request #7 from Defirence/Defirence/issue5 #23
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| 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] | |
| with: | |
| key: eslint_cache_main | |
| - 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 |