Skip to content

Commit

Permalink
Add Lint Github workflow
Browse files Browse the repository at this point in the history
  • Loading branch information
yashmeet29 committed Jun 21, 2024
1 parent 5aa78be commit e616ab9
Show file tree
Hide file tree
Showing 3 changed files with 31 additions and 0 deletions.
20 changes: 20 additions & 0 deletions .github/workflows/lint.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,20 @@
name: Lint

on:
push:
branches: [develop]
pull_request:
types: [opened, synchronize, reopened, auto_merge_enabled]

concurrency:
group: lint-${{ github.workflow }}-${{ github.head_ref || github.run_id }}
cancel-in-progress: true

jobs:
lint:
runs-on: ubuntu-latest
steps:
- uses: actions/setup-node@v4
- uses: actions/checkout@v4
- run: npm i
- run: npm run lint
6 changes: 6 additions & 0 deletions .github/workflows/sonarqube.yml
Original file line number Diff line number Diff line change
Expand Up @@ -30,10 +30,16 @@ on:
push:
branches:
- develop

pull_request:
branches:
- develop
types: [opened, synchronize, reopened]

concurrency:
group: lint-${{ github.workflow }}-${{ github.head_ref || github.run_id }}
cancel-in-progress: true

workflow_dispatch:

permissions:
Expand Down
5 changes: 5 additions & 0 deletions .github/workflows/unit.tests.yml
Original file line number Diff line number Diff line change
Expand Up @@ -6,9 +6,14 @@ name: UnitTestsWithCodeCoverage
on:
push:
branches: [ "develop" ]

pull_request:
branches: [ "develop" ]
types: [opened, synchronize, reopened, auto_merge_enabled]

concurrency:
group: lint-${{ github.workflow }}-${{ github.head_ref || github.run_id }}
cancel-in-progress: true

permissions:
pull-requests: read
Expand Down

0 comments on commit e616ab9

Please sign in to comment.