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