Skip to content

Commit

Permalink
Merge remote-tracking branch 'origin/master'
Browse files Browse the repository at this point in the history
  • Loading branch information
a-limyr committed Nov 26, 2024
2 parents d989c15 + 4990ee7 commit 050ffbe
Show file tree
Hide file tree
Showing 8 changed files with 529 additions and 386 deletions.
7 changes: 4 additions & 3 deletions .github/workflows/build.yml
Original file line number Diff line number Diff line change
Expand Up @@ -37,7 +37,7 @@ jobs:
run: npm list
- run: npm ci --legacy-peer-deps
- run: npm run check
- run: npm run test -- --coverage
- run: npm run test -- run --coverage --coverage.reporter=lcov --reporter=vitest-sonar-reporter --outputFile.vitest-sonar-reporter=test-report.xml --reporter=default
- name: SonarQube Scan
uses: sonarsource/sonarqube-scan-action@v2.3.0
env:
Expand All @@ -49,8 +49,9 @@ jobs:
-Dsonar.projectKey=entur_abzu
-Dsonar.sources=src
-Dsonar.tests=src
-Dsonar.test.inclusions=src/**/*.test.ts
-Dsonar.typescript.lcov.reportPaths=coverage/lcov.info
-Dsonar.test.inclusions=src/**/*.spec.ts,src/**/*.spec.tsx,src/**/*.test.ts,src/**/*.test.tsx,src/**/*.spec.js,src/**/*.spec.jsx,src/**/*.test.js,src/**/*.test.jsx
-Dsonar.javascript.lcov.reportPaths=coverage/lcov.info
-Dsonar.testExecutionReportPaths=test-report.xml
- name: Bump version
run: |
npm version minor
Expand Down
9 changes: 5 additions & 4 deletions .github/workflows/pull_request_build_and_deploy.yml
Original file line number Diff line number Diff line change
Expand Up @@ -31,9 +31,9 @@ jobs:
run: npm list
- run: npm ci --legacy-peer-deps
- run: npm run check
- run: npm run test -- --coverage
- run: npm run test -- run --coverage --coverage.reporter=lcov --reporter=vitest-sonar-reporter --outputFile.vitest-sonar-reporter=test-report.xml --reporter=default
- name: SonarQube Scan
uses: sonarsource/sonarqube-scan-action@master
uses: sonarsource/sonarqube-scan-action@v2.3.0
env:
SONAR_TOKEN: ${{ secrets.ENTUR_SONAR_PASSWORD }}
SONAR_HOST_URL: https://sonarcloud.io
Expand All @@ -43,8 +43,9 @@ jobs:
-Dsonar.projectKey=entur_abzu
-Dsonar.sources=src
-Dsonar.tests=src
-Dsonar.test.inclusions=src/**/*.test.ts
-Dsonar.typescript.lcov.reportPaths=coverage/lcov.info
-Dsonar.test.inclusions=src/**/*.spec.ts,src/**/*.spec.tsx,src/**/*.test.ts,src/**/*.test.tsx,src/**/*.spec.js,src/**/*.spec.jsx,src/**/*.test.js,src/**/*.test.jsx
-Dsonar.javascript.lcov.reportPaths=coverage/lcov.info
-Dsonar.testExecutionReportPaths=test-report.xml
- run: npm run build
- name: Copy bootstrap config
run: cp .github/environments/dev.json build/bootstrap.json
Expand Down
1 change: 1 addition & 0 deletions .husky/.gitignore
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
_
4 changes: 4 additions & 0 deletions .husky/pre-commit
Original file line number Diff line number Diff line change
@@ -0,0 +1,4 @@
#!/bin/sh
. "$(dirname "$0")/_/husky.sh"

npx lint-staged
Loading

0 comments on commit 050ffbe

Please sign in to comment.