From d96b4b2a836f13ece34a7efa371710fad9ec3037 Mon Sep 17 00:00:00 2001 From: Ganesh Swami Date: Thu, 16 Nov 2023 21:52:52 -0800 Subject: [PATCH] add linter --- .github/workflows/linter.yml | 36 ++++++++++++++++++++++++++++++++++++ 1 file changed, 36 insertions(+) create mode 100644 .github/workflows/linter.yml diff --git a/.github/workflows/linter.yml b/.github/workflows/linter.yml new file mode 100644 index 00000000..facfaefd --- /dev/null +++ b/.github/workflows/linter.yml @@ -0,0 +1,36 @@ +# This is a basic workflow to help you get started with Actions + +name: CI + +# Controls when the workflow will run +on: + push: + branches: ['main'] + pull_request: + branches: ['*'] + +# A workflow run is made up of one or more jobs that can run sequentially or in parallel +jobs: + # This workflow contains a single job called "build" + build: + # The type of runner that the job will run on + runs-on: ubuntu-latest + + # Steps represent a sequence of tasks that will be executed as part of the job + steps: + # Checks-out your repository under $GITHUB_WORKSPACE, so your job can access it + - uses: actions/checkout@v3 + with: + fetch-depth: 0 + # - uses: npm/action-setup@v2 + # with: + # version: 8 + - uses: actions/setup-node@v3 + with: + node-version: 16 + cache: 'npm' + cache-dependency-path: package-lock.json + + - run: npm install + - run: npm run lint + - run: npm run build