plasma-infra: Add storybook for "Plasma-ASDK" #4118
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: Typescript coverage | |
on: | |
merge_group: | |
pull_request: | |
branches: | |
- master | |
- dev | |
concurrency: | |
# New commit on branch cancels running workflows of the same branch | |
group: ${{ github.workflow }}-${{ github.head_ref }} | |
cancel-in-progress: true | |
jobs: | |
scope: | |
uses: ./.github/workflows/change-detection.yml | |
with: | |
as-enumeration: true | |
secrets: inherit | |
typescript-coverage: | |
needs: scope | |
if: ${{ needs.scope.outputs.HAS_SCOPE == 'true' }} | |
runs-on: ubuntu-latest | |
env: | |
NPM_REGISTRY_TOKEN: ${{ secrets.NPM_REGISTRY_TOKEN }} | |
# INFO: Игнорируем пакеты связанные с plasma-tokens, документацией и утилитами, т.к. в них не запускается typescript-coverage | |
LERNA_IGNORE_LIST: "@salutejs/plasma-{tokens*,temple-docs,ui-docs,docs-ui,web-docs,website,theme-builder,cy-utils,sb-utils}" | |
steps: | |
- uses: actions/checkout@v3 | |
with: | |
fetch-depth: 0 | |
- uses: ./.github/actions/prepare-environment | |
- name: Computed scope | |
id: scope | |
uses: actions/github-script@v6 | |
env: | |
ENUMERATION: ${{ toJSON(needs.scope.outputs.PACKAGES_ENUMERATION) }} | |
with: | |
result-encoding: string | |
script: | | |
const { ENUMERATION } = process.env; | |
const enumeration = JSON.parse(JSON.parse(ENUMERATION)); | |
if (!enumeration.includes('plasma-core')) { | |
enumeration.push('plasma-core') | |
} | |
return enumeration.join(','); | |
- name: Lerna bootstrap | |
run: npx lerna bootstrap --scope=@salutejs/{${{steps.scope.outputs.result}}} --ignore=${{env.LERNA_IGNORE_LIST}} | |
- name: Run Typescript Coverage | |
if: ${{ always() }} | |
run: | | |
npm run typescript-coverage -- --ignore=${{env.LERNA_IGNORE_LIST}} | |
- name: Save artifacts | |
if: ${{ failure() }} | |
uses: actions/upload-artifact@v2 | |
with: | |
name: Typescript Coverage Report Artifacts | |
path: /home/runner/work/plasma/plasma/packages/*/coverage-ts/ |