From 6582694b9a84c8ac512cd58d7af6316ba058d322 Mon Sep 17 00:00:00 2001 From: Nestor Qin Date: Wed, 3 Jul 2024 12:08:08 -0400 Subject: [PATCH] CI: set up GitHub action for code linting --- .github/workflows/lint.yml | 28 ++++++++++++++++++++++++++++ 1 file changed, 28 insertions(+) create mode 100644 .github/workflows/lint.yml diff --git a/.github/workflows/lint.yml b/.github/workflows/lint.yml new file mode 100644 index 0000000..7f42b2f --- /dev/null +++ b/.github/workflows/lint.yml @@ -0,0 +1,28 @@ +name: Lint + +on: + push: + branches: + - main + pull_request: + branches: + - main + +jobs: + lint: + runs-on: ubuntu-latest + steps: + - name: Checkout code + uses: actions/checkout@v3 + + - name: Set up Node.js + uses: actions/setup-node@v3 + with: + node-version: '16' + + - name: Install dependencies + run: npm install + + - name: Run linter check + run: npm run lint + \ No newline at end of file