Skip to content

Commit

Permalink
Feature : Standardize the Pull Request GitHub Action to match Talawa …
Browse files Browse the repository at this point in the history
…API (#1288)

* Feature : Standardize the Pull Request GitHub Action to match Talawa API

* Fixes test fail
aialok authored Dec 27, 2023

Verified

This commit was created on GitHub.com and signed with GitHub’s verified signature.
1 parent bf8d298 commit dfe1dc9
Showing 1 changed file with 22 additions and 8 deletions.
30 changes: 22 additions & 8 deletions .github/workflows/pull-requests.yml
Original file line number Diff line number Diff line change
@@ -20,10 +20,8 @@ env:
CODECOV_UNIQUE_NAME: CODECOV_UNIQUE_NAME-${{ github.run_id }}-${{ github.run_number }}

jobs:

Continuous-Integration:

name: Performs linting, formatting, type-checking, and testing on the application
Code-Quality-Checks:
name: Performs linting, formatting, type-checking
runs-on: ubuntu-latest
steps:
- name: Checkout the Repository
@@ -49,14 +47,30 @@ jobs:
if: steps.changed-files.outputs.only_changed != 'true'
run: npm run typecheck

- name: Run linting check
if: steps.changed-files.outputs.only_changed != 'true'
run: npm run lint:check


Test-Application:
name: Test Application
runs-on: ubuntu-latest
needs: [Code-Quality-Checks]
steps:
- name: Checkout the Repository
uses: actions/checkout@v3

- name: Install Dependencies
run: npm install --legacy-peer-deps

- name: Get changed TypeScript files
id: changed-files
uses: tj-actions/changed-files@v40

- name: Run tests
if: steps.changed-files.outputs.only_changed != 'true'
run: npm run test -- --watchAll=false --coverage

- name: Run linting check
if: steps.changed-files.outputs.only_changed != 'true'
run: npm run lint:check

- name: TypeScript compilation for changed files
run: |
for file in ${{ steps.changed-files.outputs.all_files }}; do

0 comments on commit dfe1dc9

Please sign in to comment.