From 7658a83138c3a63437f6922223b13a1799c0055d Mon Sep 17 00:00:00 2001 From: Peter Harrison <16875803+palisadoes@users.noreply.github.com> Date: Mon, 11 Dec 2023 20:24:06 -0500 Subject: [PATCH] Revert "Pr workflow (#1161)" (#1181) This reverts commit 5a475c84b5059048c9d4736ed55bdaf187ade7b4. --- .github/workflows/pull-requests.yml | 26 ++++++++++++-------------- 1 file changed, 12 insertions(+), 14 deletions(-) diff --git a/.github/workflows/pull-requests.yml b/.github/workflows/pull-requests.yml index 705e8aa878..202f555303 100644 --- a/.github/workflows/pull-requests.yml +++ b/.github/workflows/pull-requests.yml @@ -1,4 +1,4 @@ - +############################################################################## ############################################################################## # # NOTE! @@ -7,7 +7,7 @@ # be placed in this file # ############################################################################## - +############################################################################## name: PR Workflow on: @@ -16,8 +16,8 @@ on: - '**' env: - CODECOV_UNIQUE_NAME: CODECOV_UNIQUE_NAME-${{ github.run_id }}-${{ github.run_number }} - + CODECOV_UNIQUE_NAME: CODECOV_UNIQUE_NAME-${{ github.run_id }}-${{ github.run_number }} + jobs: Continuous-Integration: @@ -48,7 +48,7 @@ jobs: - name: Run linting check run: npm run lint:check - + - name: Count number of lines run: | chmod +x ./.github/workflows/countline.py @@ -57,39 +57,37 @@ jobs: - name: Check formatting run: npm run format:check - - name: Check for type errors in modified/added code - run: npm run typecheck -- --changed - + - name: Check for type errors + run: npm run typecheck + - name: Run tests run: npm run test -- --watchAll=false --coverage - + - name: Present and Upload coverage to Codecov as ${{env.CODECOV_UNIQUE_NAME}} uses: codecov/codecov-action@v3 with: verbose: true fail_ci_if_error: false - name: '${{env.CODECOV_UNIQUE_NAME}}' + name: '${{env.CODECOV_UNIQUE_NAME}}' - name: Test acceptable level of code coverage uses: VeryGoodOpenSource/very_good_coverage@v2 with: path: "./coverage/lcov.info" min_coverage: 95.0 - Graphql-Inspector: name: Runs Introspection on the github talawa-api repo on the schema.graphql file runs-on: ubuntu-latest steps: - name: Checkout the Repository uses: actions/checkout@v3 - + - name: Set up Node.js uses: actions/setup-node@v3 with: node-version: '16.14.1' - - - name: Resolve dependency + - name: Resolve dependency run: npm install -g @graphql-inspector/cli - name: Clone API repository