chore(deps): update dependency husky to v9.1.7 #1036
Workflow file for this run
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
name: Tests | |
on: | |
push: | |
branches: | |
- main | |
pull_request: | |
jobs: | |
run-unit-tests: | |
name: Run Tests | |
runs-on: macos-latest | |
steps: | |
- uses: actions/checkout@v4 | |
- uses: pnpm/action-setup@v3 | |
- uses: actions/setup-node@v4 | |
with: | |
node-version-file: '.nvmrc' | |
cache: 'pnpm' | |
- run: pnpm install | |
- run: pnpm tsc --noEmit | |
- run: pnpm test -- --coverage --runInBand --verbose | |
- name: Archive code coverage results | |
uses: actions/upload-artifact@v4 | |
with: | |
name: code-coverage-report | |
path: coverage/lcov.info | |
sonarcloud: | |
name: SonarCloud Analysis | |
runs-on: ubuntu-latest | |
needs: run-unit-tests | |
if: github.event.pull_request.head.repo.fork == false # Only analyze PRs from the same repository. Limitation of SonarCloud | |
steps: | |
- uses: actions/checkout@v4 | |
with: | |
fetch-depth: 0 # Shallow clones should be disabled for a better relevancy of analysis | |
- name: Download a single artifact | |
uses: actions/download-artifact@v4 | |
with: | |
name: code-coverage-report | |
path: coverage/ | |
- name: list all files | |
run: ls -la | |
- name: list coverage folder | |
run: ls -la coverage/ | |
- name: SonarCloud Scan | |
uses: SonarSource/sonarcloud-github-action@master | |
env: | |
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} # Needed to get PR information, if any | |
SONAR_TOKEN: ${{ secrets.SONAR_TOKEN }} |