Merge branch 'main' into dependabot/npm_and_yarn/follow-redirects-1.15.6 #15
Workflow file for this run
This file contains 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
--- | |
name: Validate Node.js code | |
on: [push, workflow_dispatch] | |
jobs: | |
nodejs-check: | |
runs-on: ubuntu-latest | |
steps: | |
- name: Checkout this repository | |
uses: actions/[email protected] | |
- name: Setup Node.js | |
uses: actions/[email protected] | |
with: | |
node-version: v20.12.2 | |
cache: npm | |
- name: Install ESLint | |
run: npm install -g [email protected] | |
- name: Install ESLint configurations dependencies | |
run: npm install eslint-config-standard eslint-plugin-import eslint-plugin-n eslint-plugin-promise [email protected] | |
- name: Download .eslintrc.yml | |
uses: suisei-cn/[email protected] | |
with: | |
url: "https://raw.githubusercontent.com/fharper/gh-configs/main/.eslintrc.yml" | |
# Rules https://eslint.org/docs/latest/rules/ | |
- name: Run ESLint | |
run: eslint . --format=pretty --config .eslintrc.yml --ext .js |