Skip to content

[MDS-6157] major projects uploads file name convention #2445

[MDS-6157] major projects uploads file name convention

[MDS-6157] major projects uploads file name convention #2445

Workflow file for this run

name: CORE WEB - Unit Tests
on:
workflow_dispatch:
pull_request:
paths:
- services/common/**
- services/core-web/**
push:
branches:
- develop
paths:
- services/common/**
- services/core-web/**
jobs:
tests-unit-frontend:
name: tests-unit-frontend
runs-on: ubuntu-20.04
env:
SONAR_TOKEN: ${{ secrets.SONAR_TOKEN }}
steps:
- uses: actions/checkout@v3
name: checkout
- uses: actions/cache@v3
name: Cache yarn
with:
path: ./.yarn/cache
key: mds-core-web
restore-keys: mds-core-web
- uses: actions/setup-node@v2
with:
node-version: 20.x
- name: Upgrade yarn
run: npm install -g yarn
- 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 frontend tests
run: yarn workspace @mds/core-web run ci-test
- name: Upload test coverage results
uses: actions/upload-artifact@v4
if: success()
with:
name: core-web-test-results
path: |
services/core-web/coverage
services/core-web/reports/test-reporter.xml
- name: Sonar Reporting
uses: SonarSource/[email protected]
with:
projectBaseDir: services/core-web