From ae904f09432b614665fd8785144b05747e701d2d Mon Sep 17 00:00:00 2001 From: Nicko Corriveau Date: Thu, 13 Jun 2024 06:44:53 -0400 Subject: [PATCH] add node linting --- .github/workflows/deployment.yaml | 25 ++++++++++++++++++++----- 1 file changed, 20 insertions(+), 5 deletions(-) diff --git a/.github/workflows/deployment.yaml b/.github/workflows/deployment.yaml index becbb11..5259641 100644 --- a/.github/workflows/deployment.yaml +++ b/.github/workflows/deployment.yaml @@ -8,9 +8,24 @@ on: - main jobs: - hello_world_job: - runs-on: ubuntu-20.04 + lint-node: + name: Lint Node.js Code + runs-on: ubuntu-latest + steps: - - name: Say hello - run: | - echo "Hello World!" + - name: Checkout code + uses: actions/checkout@v3 + + - name: Set up Node.js + uses: actions/setup-node@v3 + with: + node-version: '18.7.0' + + - name: Install dependencies + run: npm install + + - name: Run ESLint + run: npm run lint + + - name: Run Prettier + run: npm run prettier-check \ No newline at end of file