Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

plasm-infra: Split lint and unit tests to different jobs #631

Merged
merged 2 commits into from
Aug 1, 2023

Conversation

Yakutoc
Copy link
Collaborator

@Yakutoc Yakutoc commented Jul 27, 2023

Release Notes

Разделили первичные и важные проверки, такие как Lint и Unit tests, в рамках одного workflow на две разные jobs

What Changed

Для атомарности.

Unit tests запускается с помощью lerna run test и поэтому мы можем использовать флаг --since и для lerna bootstrap, и для самой команды запуска тестов.

А вот Lint запускается для всей монорепы, и так получается что флаг --since уже мешает и вносит проблемы, в виде неустановленных пакетов.

Поэтому для этой проверки оставили полный bootstrap.

Check list

  1. plasma-core
  2. plasma-web
  3. plasma-tokens-utils

Ни в одном сценарии не было ошибки связной с неустановленным/отсутствующим пакетом.

https://github.com/salute-developers/plasma/actions/workflows/tests.yml?query=branch%3Aci_refactoring_tests-workflow


🐤 Download canary assets:
color
color_plasma_b2c_ios-swift--canary.631.5690535609.swift
color_plasma_b2c_kotlin--canary.631.5690535609.kt
color_plasma_b2c_react-native--canary.631.5690535609.ts
color_plasma_b2c_xml--canary.631.5690535609.xml
color_sberHealth_ios-swift--canary.631.5690535609.swift
color_sberHealth_kotlin--canary.631.5690535609.kt
color_sberHealth_react-native--canary.631.5690535609.ts
color_sberHealth_xml--canary.631.5690535609.xml
color_sbermarket_business_ios-swift--canary.631.5690535609.swift
color_sbermarket_business_kotlin--canary.631.5690535609.kt
color_sbermarket_business_react-native--canary.631.5690535609.ts
color_sbermarket_business_xml--canary.631.5690535609.xml
color_sbermarket_ios-swift--canary.631.5690535609.swift
color_sbermarket_kotlin--canary.631.5690535609.kt
color_sbermarket_metro_ios-swift--canary.631.5690535609.swift
color_sbermarket_metro_kotlin--canary.631.5690535609.kt
color_sbermarket_metro_react-native--canary.631.5690535609.ts
color_sbermarket_metro_xml--canary.631.5690535609.xml
color_sbermarket_react-native--canary.631.5690535609.ts
color_sbermarket_selgros_ios-swift--canary.631.5690535609.swift
color_sbermarket_selgros_kotlin--canary.631.5690535609.kt
color_sbermarket_selgros_react-native--canary.631.5690535609.ts
color_sbermarket_selgros_xml--canary.631.5690535609.xml
color_sbermarket_wlbusiness_ios-swift--canary.631.5690535609.swift
color_sbermarket_wlbusiness_kotlin--canary.631.5690535609.kt
color_sbermarket_wlbusiness_react-native--canary.631.5690535609.ts
color_sbermarket_wlbusiness_xml--canary.631.5690535609.xml
color_sbermarket_xml--canary.631.5690535609.xml
color_sberonline_ios-swift--canary.631.5690535609.swift
color_sberonline_kotlin--canary.631.5690535609.kt
color_sberonline_react-native--canary.631.5690535609.ts
color_sberonline_xml--canary.631.5690535609.xml
color_sberprime_ios-swift--canary.631.5690535609.swift
color_sberprime_kotlin--canary.631.5690535609.kt
color_sberprime_react-native--canary.631.5690535609.ts
color_sberprime_xml--canary.631.5690535609.xml
color_stylesSalute_ios-swift--canary.631.5690535609.swift
color_stylesSalute_kotlin--canary.631.5690535609.kt
color_stylesSalute_react-native--canary.631.5690535609.ts
color_stylesSalute_xml--canary.631.5690535609.xml
shadow
shadow_plasma_b2c_react-native--canary.631.5690535609.ts
shadow_sberHealth_react-native--canary.631.5690535609.ts
shadow_sbermarket_business_react-native--canary.631.5690535609.ts
shadow_sbermarket_metro_react-native--canary.631.5690535609.ts
shadow_sbermarket_react-native--canary.631.5690535609.ts
shadow_sbermarket_selgros_react-native--canary.631.5690535609.ts
shadow_sbermarket_wlbusiness_react-native--canary.631.5690535609.ts
shadow_sberonline_react-native--canary.631.5690535609.ts
shadow_sberprime_react-native--canary.631.5690535609.ts
shadow_stylesSalute_react-native--canary.631.5690535609.ts
typo
typo_mage_ios-swift--canary.631.5690535609.swift
typo_mage_kotlin--canary.631.5690535609.kt
typo_mage_react-native--canary.631.5690535609.ts
typo_plasma_ios-swift--canary.631.5690535609.swift
typo_plasma_kotlin--canary.631.5690535609.kt
typo_plasma_react-native--canary.631.5690535609.ts
typo_ruler_ios-swift--canary.631.5690535609.swift
typo_ruler_kotlin--canary.631.5690535609.kt
typo_ruler_react-native--canary.631.5690535609.ts
typo_sage_ios-swift--canary.631.5690535609.swift
typo_sage_kotlin--canary.631.5690535609.kt
typo_sage_react-native--canary.631.5690535609.ts
typo_sbermarket_ios-swift--canary.631.5690535609.swift
typo_sbermarket_kotlin--canary.631.5690535609.kt
typo_sbermarket_react-native--canary.631.5690535609.ts
typo_soulmate_ios-swift--canary.631.5690535609.swift
typo_soulmate_kotlin--canary.631.5690535609.kt
typo_soulmate_react-native--canary.631.5690535609.ts
📦 Published PR as canary version: Canary Versions

✨ Test out this PR locally via:

npm install @salutejs/[email protected]
npm install @salutejs/[email protected]
npm install @salutejs/[email protected]
npm install @salutejs/[email protected]
npm install @salutejs/[email protected]
npm install @salutejs/[email protected]
npm install @salutejs/[email protected]
npm install @salutejs/[email protected]
npm install @salutejs/[email protected]
npm install @salutejs/[email protected]
npm install @salutejs/[email protected]
npm install @salutejs/[email protected]
npm install @salutejs/[email protected]
npm install @salutejs/[email protected]
# or 
yarn add @salutejs/[email protected]
yarn add @salutejs/[email protected]
yarn add @salutejs/[email protected]
yarn add @salutejs/[email protected]
yarn add @salutejs/[email protected]
yarn add @salutejs/[email protected]
yarn add @salutejs/[email protected]
yarn add @salutejs/[email protected]
yarn add @salutejs/[email protected]
yarn add @salutejs/[email protected]
yarn add @salutejs/[email protected]
yarn add @salutejs/[email protected]
yarn add @salutejs/[email protected]
yarn add @salutejs/[email protected]

@Yakutoc Yakutoc self-assigned this Jul 27, 2023
@Salute-Eva
Copy link
Contributor

Theme Builder app deployed!

http://plasma.sberdevices.ru/pr/plasma-theme-builder-pr-631/

1 similar comment
@Salute-Eva
Copy link
Contributor

Theme Builder app deployed!

http://plasma.sberdevices.ru/pr/plasma-theme-builder-pr-631/

@Salute-Eva
Copy link
Contributor

@Salute-Eva
Copy link
Contributor

Theme Builder app deployed!

http://plasma.sberdevices.ru/pr/plasma-theme-builder-pr-631/

@Salute-Eva
Copy link
Contributor

@Yakutoc Yakutoc force-pushed the ci_refactoring_tests-workflow branch from cc14986 to 961441a Compare July 27, 2023 11:16
@Salute-Eva
Copy link
Contributor

Theme Builder app deployed!

http://plasma.sberdevices.ru/pr/plasma-theme-builder-pr-631/

@Salute-Eva
Copy link
Contributor

@Yakutoc Yakutoc force-pushed the ci_refactoring_tests-workflow branch from 961441a to a1d667f Compare July 28, 2023 07:18
@Salute-Eva
Copy link
Contributor

Theme Builder app deployed!

http://plasma.sberdevices.ru/pr/plasma-theme-builder-pr-631/

@Salute-Eva
Copy link
Contributor

Documentation preview deployed!

website: http://plasma.sberdevices.ru/pr/pr-631/
web storybook: http://plasma.sberdevices.ru/pr/pr-631/web-storybook/

@Yakutoc Yakutoc force-pushed the ci_refactoring_tests-workflow branch from a1d667f to 561802b Compare July 28, 2023 07:43
@Salute-Eva
Copy link
Contributor

Theme Builder app deployed!

http://plasma.sberdevices.ru/pr/plasma-theme-builder-pr-631/

@Salute-Eva
Copy link
Contributor

@Yakutoc Yakutoc force-pushed the ci_refactoring_tests-workflow branch from 561802b to 782618c Compare July 28, 2023 08:09
@Yakutoc Yakutoc changed the title [WIP] plasm-infra: Split lint and unit tests to different jobs plasm-infra: Split lint and unit tests to different jobs Jul 28, 2023
@Salute-Eva
Copy link
Contributor

Theme Builder app deployed!

http://plasma.sberdevices.ru/pr/plasma-theme-builder-pr-631/

@Yakutoc Yakutoc marked this pull request as ready for review July 28, 2023 08:17
@Yakutoc Yakutoc force-pushed the ci_refactoring_tests-workflow branch from 782618c to b9bb89c Compare July 28, 2023 09:11
@Salute-Eva
Copy link
Contributor

Theme Builder app deployed!

http://plasma.sberdevices.ru/pr/plasma-theme-builder-pr-631/

@Yakutoc Yakutoc force-pushed the ci_refactoring_tests-workflow branch from b9bb89c to 3bc2402 Compare July 28, 2023 09:20
@Salute-Eva
Copy link
Contributor

Theme Builder app deployed!

http://plasma.sberdevices.ru/pr/plasma-theme-builder-pr-631/

@Yakutoc Yakutoc force-pushed the ci_refactoring_tests-workflow branch from 3bc2402 to b5fd8ae Compare July 28, 2023 09:40
@Salute-Eva
Copy link
Contributor

Theme Builder app deployed!

http://plasma.sberdevices.ru/pr/plasma-theme-builder-pr-631/

@Salute-Eva
Copy link
Contributor


- uses: ./.github/actions/prepare-environment

- name: Lerna bootstrap
run: npx lerna bootstrap --ignore @salutejs/plasma-tokens*
run: npx lerna bootstrap
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

я же правильно помню что потом мы разделим линтер по пакетам и втащим --since ?

Copy link
Collaborator Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

@Yeti-or Да все правильно, у нас есть задача на это.

@Yakutoc Yakutoc added this pull request to the merge queue Aug 1, 2023
Merged via the queue into dev with commit 1345e18 Aug 1, 2023
@Yakutoc Yakutoc deleted the ci_refactoring_tests-workflow branch August 1, 2023 10:29
@Salute-Eva
Copy link
Contributor

🚀 This PR is included in version: @salutejs/[email protected], @salutejs/[email protected], @salutejs/[email protected], @salutejs/[email protected], @salutejs/[email protected], @salutejs/[email protected], @salutejs/[email protected], @salutejs/[email protected], @salutejs/[email protected], @salutejs/[email protected], @salutejs/[email protected], @salutejs/[email protected], @salutejs/[email protected], @salutejs/[email protected], @salutejs/[email protected], @salutejs/[email protected], @salutejs/[email protected], @salutejs/[email protected], @salutejs/[email protected], @salutejs/[email protected] 🚀

1 similar comment
@Salute-Eva
Copy link
Contributor

🚀 This PR is included in version: @salutejs/[email protected], @salutejs/[email protected], @salutejs/[email protected], @salutejs/[email protected], @salutejs/[email protected], @salutejs/[email protected], @salutejs/[email protected], @salutejs/[email protected], @salutejs/[email protected], @salutejs/[email protected], @salutejs/[email protected], @salutejs/[email protected], @salutejs/[email protected], @salutejs/[email protected], @salutejs/[email protected], @salutejs/[email protected], @salutejs/[email protected], @salutejs/[email protected], @salutejs/[email protected], @salutejs/[email protected] 🚀

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

5 participants