Skip to content

Commit

Permalink
Revert "Pr workflow (#1161)" (#1181)
Browse files Browse the repository at this point in the history
This reverts commit 5a475c8.
  • Loading branch information
palisadoes authored Dec 12, 2023
1 parent 73df92c commit 7658a83
Showing 1 changed file with 12 additions and 14 deletions.
26 changes: 12 additions & 14 deletions .github/workflows/pull-requests.yml
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@

##############################################################################
##############################################################################
#
# NOTE!
Expand All @@ -7,7 +7,7 @@
# be placed in this file
#
##############################################################################

##############################################################################

name: PR Workflow
on:
Expand All @@ -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:
Expand Down Expand Up @@ -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
Expand All @@ -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
Expand Down

0 comments on commit 7658a83

Please sign in to comment.