Skip to content

fix GitHub Workflow to check syntax with Vale #21

fix GitHub Workflow to check syntax with Vale

fix GitHub Workflow to check syntax with Vale #21

Workflow file for this run

---
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