From 153dc8192c620a16c9b29e710b1f3d159b7d35d4 Mon Sep 17 00:00:00 2001 From: Sanjiban Sengupta Date: Tue, 28 Nov 2023 04:35:24 +0530 Subject: [PATCH] ci: configure eslint workflow (#4) --- .github/workflows/build.yaml | 26 ++++++++++++++++++++++++++ .github/workflows/lint.yaml | 14 ++++++++++++++ 2 files changed, 40 insertions(+) create mode 100644 .github/workflows/build.yaml create mode 100644 .github/workflows/lint.yaml diff --git a/.github/workflows/build.yaml b/.github/workflows/build.yaml new file mode 100644 index 0000000..c283edd --- /dev/null +++ b/.github/workflows/build.yaml @@ -0,0 +1,26 @@ +name: Build + +on: [push, pull_request] + +jobs: + build: + runs-on: ubuntu-latest + + steps: + - uses: actions/checkout@v3 + + - name: Initialize and update submodules + run: | + git submodule update --init --recursive + + - name: Use Node.js + uses: actions/setup-node@v3 + with: + node-version: 18 + cache: "npm" + + - name: Install dependencies + run: npm ci + + - name: Build project + run: npm run build diff --git a/.github/workflows/lint.yaml b/.github/workflows/lint.yaml new file mode 100644 index 0000000..c9b566c --- /dev/null +++ b/.github/workflows/lint.yaml @@ -0,0 +1,14 @@ +name: Lint + +on: [push] + +jobs: + ESLint: + runs-on: ubuntu-latest + steps: + - uses: actions/checkout@v3 + - name: Install ESLint + run: | + npm install eslint + - name: Run ESLint + run: npm run lint