Skip to content

Commit 1ae6923

Browse files
committed
[unit-testing] Updated git workflows
1 parent 58b9a31 commit 1ae6923

4 files changed

Lines changed: 16 additions & 66 deletions

File tree

.github/workflows/code-check.yaml

Lines changed: 9 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
name: Code Quality Check
1+
name: Code Check
22
on:
33
push:
44
branches:
@@ -7,7 +7,7 @@ on:
77
types: [opened, synchronize, reopened]
88
jobs:
99
code-quality-check:
10-
name: Checks code quality
10+
name: Code check
1111
runs-on: ubuntu-latest
1212
steps:
1313
- uses: actions/checkout@v3
@@ -19,8 +19,10 @@ jobs:
1919
env:
2020
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
2121

22-
- name: SonarCloud Scan
23-
uses: sonarsource/sonarcloud-github-action@v2
24-
env:
25-
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
26-
SONAR_TOKEN: ${{ secrets.SONAR_TOKEN }}
22+
- name: Run ESLint
23+
run: yarn run lint
24+
continue-on-error: false
25+
26+
- name: Run unit tests
27+
run: yarn run test --coverage --forceExit --maxWorkers=2
28+
continue-on-error: false

.github/workflows/lint.yml

Lines changed: 0 additions & 26 deletions
This file was deleted.
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
name: Test
1+
name: Sonarqube
22
on:
33
push:
44
branches:
@@ -7,7 +7,7 @@ on:
77
types: [opened, synchronize, reopened]
88
jobs:
99
code-quality-check:
10-
name: Test Runner
10+
name: Sonar code quality check
1111
runs-on: ubuntu-latest
1212
steps:
1313
- uses: actions/checkout@v3
@@ -19,10 +19,8 @@ jobs:
1919
env:
2020
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
2121

22-
- name: Run unit tests
23-
run: yarn run test --coverage --forceExit --maxWorkers=2
24-
continue-on-error: false
25-
26-
- name: Run TypeScript type check
27-
run: npx tsc --noEmit
28-
continue-on-error: false
22+
- name: SonarCloud Scan
23+
uses: sonarsource/sonarcloud-github-action@v2
24+
env:
25+
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
26+
SONAR_TOKEN: ${{ secrets.SONAR_TOKEN }}

.github/workflows/type-check.yaml

Lines changed: 0 additions & 24 deletions
This file was deleted.

0 commit comments

Comments
 (0)