From d842271b82771b0a23c8b65d621f1337b7ba43a2 Mon Sep 17 00:00:00 2001 From: "Xenos F." Date: Wed, 6 Nov 2024 02:31:33 +0800 Subject: [PATCH] Add linting CI action --- .github/workflows/lint.yml | 27 +++++++++++++++++++++++++++ 1 file changed, 27 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 0000000000..40ba208dd0 --- /dev/null +++ b/.github/workflows/lint.yml @@ -0,0 +1,27 @@ +name: Static Analysis + +on: + push: + branches: + - main + pull_request: + branches: + - main +jobs: + lint: + strategy: + fail-fast: false #ensure both tests run even if one fails + matrix: + os: [ubuntu-latest, windows-latest] + runs-on: ${{ matrix.os }} + steps: + - uses: actions/checkout@v4 + with: + fetch-depth: '0' + - uses: actions/setup-node@v4 + with: + node-version: 18 + - name: Install Dependencies + run: npm ci + - name: Run Lint Checks + run: npx eslint . \ No newline at end of file