From 911142a8aa503d91f200682bcaad85979a3ed937 Mon Sep 17 00:00:00 2001 From: Logan Cusano Date: Sun, 15 Sep 2024 01:13:43 -0400 Subject: [PATCH] Implement linting --- gitea/workflows/DRBv3_linting.yaml | 28 ++++++++++++++++++++++++++++ 1 file changed, 28 insertions(+) create mode 100644 gitea/workflows/DRBv3_linting.yaml diff --git a/gitea/workflows/DRBv3_linting.yaml b/gitea/workflows/DRBv3_linting.yaml new file mode 100644 index 0000000..a05c72f --- /dev/null +++ b/gitea/workflows/DRBv3_linting.yaml @@ -0,0 +1,28 @@ +name: Lint JavaScript/Node.js + +on: + push: + branches: + - main + pull_request: + branches: + - "*" + +jobs: + lint-js: + runs-on: ubuntu-latest + + steps: + - name: Checkout Code + uses: actions/checkout@v4 + + - name: Set up Node.js + uses: actions/setup-node@v4 + with: + node-version: '22' # Use your preferred Node.js version + + - name: Install Dependencies + run: npm install + + - name: Lint JavaScript/Node.js + run: npm run lint