[MDS-6906] Fix for file version not collapsing #3397
This file contains hidden or 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: MINESPACE - Unit Tests | |
| on: | |
| pull_request: | |
| paths: | |
| - services/common/** | |
| - services/minespace-web/** | |
| workflow_dispatch: | |
| push: | |
| branches: | |
| - develop | |
| paths: | |
| - services/common/** | |
| - services/minespace-web/** | |
| jobs: | |
| tests-unit-minespace: | |
| name: tests-unit-minespace | |
| runs-on: ubuntu-24.04 | |
| env: | |
| SONAR_TOKEN: ${{ secrets.SONAR_TOKEN }} | |
| steps: | |
| - uses: actions/checkout@v3 | |
| name: checkout | |
| with: | |
| fetch-depth: 0 | |
| - uses: actions/cache@v3 | |
| name: Cache yarn | |
| with: | |
| path: ./.yarn/cache | |
| key: mds-minespace | |
| restore-keys: mds-minespace | |
| - uses: actions/setup-node@v4 | |
| with: | |
| node-version-file: '.nvmrc' | |
| - name: Set Fontawesome token | |
| run: | | |
| yarn config set 'npmScopes["fortawesome"].npmAuthIdent' "${{ secrets.ARTIFACTORY_TOKEN }}" | |
| yarn config set 'npmScopes["fortawesome"].npmAlwaysAuth' true | |
| yarn config set 'npmScopes["fortawesome"].npmRegistryServer' "https://artifacts.developer.gov.bc.ca/artifactory/api/npm/m4c2-mds/" | |
| - name: Install Dependencies | |
| run: yarn install | |
| - name: Run minespace tests | |
| run: yarn workspace @mds/minespace-web run ci-test | |
| - name: Upload test coverage results | |
| uses: actions/upload-artifact@v4 | |
| if: success() | |
| with: | |
| name: minespace-web-test-results | |
| path: | | |
| services/minespace-web/coverage | |
| services/minespace-web/reports/test-reporter.xml | |
| - name: Sonar Reporting | |
| uses: SonarSource/sonarqube-scan-action@v6.0.0 | |
| with: | |
| projectBaseDir: services/minespace-web |