chore(deps): update dependency @atlaskit/primitives to v12.2.0 (#80) #280
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: Run 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 | |
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 }} |