From d8dc0ced94adee292681de4c5540c5cce79bd647 Mon Sep 17 00:00:00 2001 From: uwezukwechibuzor Date: Fri, 14 Jul 2023 02:15:53 +0100 Subject: [PATCH] added backend-lint.yml & client-lint.yml --- ...ckend-client-lint.yml => backend-lint.yml} | 14 ++------ .github/workflows/client-lint.yml | 32 +++++++++++++++++++ 2 files changed, 34 insertions(+), 12 deletions(-) rename .github/workflows/{backend-client-lint.yml => backend-lint.yml} (67%) create mode 100644 .github/workflows/client-lint.yml diff --git a/.github/workflows/backend-client-lint.yml b/.github/workflows/backend-lint.yml similarity index 67% rename from .github/workflows/backend-client-lint.yml rename to .github/workflows/backend-lint.yml index 68dc649c..9f44db2a 100644 --- a/.github/workflows/backend-client-lint.yml +++ b/.github/workflows/backend-lint.yml @@ -1,4 +1,4 @@ -name: Backend and Client Lint +name: Backend Lint on: push: @@ -9,7 +9,7 @@ on: - main jobs: - backend-client-lint: + backend-lint: runs-on: ubuntu-latest steps: @@ -29,14 +29,4 @@ jobs: - name: Run backend linter run: | cd backend - npm run lint - - - name: Install client dependencies - run: | - cd client - npm ci - - - name: Run client linter - run: | - cd client npm run lint \ No newline at end of file diff --git a/.github/workflows/client-lint.yml b/.github/workflows/client-lint.yml new file mode 100644 index 00000000..fe3e24be --- /dev/null +++ b/.github/workflows/client-lint.yml @@ -0,0 +1,32 @@ +name: Client Lint + +on: + push: + branches: + - main + pull_request: + branches: + - main + +jobs: + client-lint: + runs-on: ubuntu-latest + + steps: + - name: Checkout code + uses: actions/checkout@v2 + + - name: Set up Node.js + uses: actions/setup-node@v2 + with: + node-version: 14 + + - name: Install client dependencies + run: | + cd client + npm ci + + - name: Run client linter + run: | + cd client + npm run lint