Skip to content

Commit 779dc91

Browse files
authored
Release by 16.04.2025 (#1924)
2 parents 5c8354c + 099d520 commit 779dc91

File tree

584 files changed

+14229
-17722
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

584 files changed

+14229
-17722
lines changed

.eslintrc.js

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -40,6 +40,7 @@ module.exports = {
4040
], // NOTE: If you want a type meaning "empty object", you probably want `Record<string, never>` instead
4141

4242
'@typescript-eslint/no-empty-interface': 'off',
43+
'@typescript-eslint/ban-ts-comment': 'warn',
4344
},
4445
settings: {
4546
react: {

.github/meta.js

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -70,17 +70,17 @@ module.exports = {
7070
},
7171
'sdds-dfa': {
7272
scope: [...commonScope, 'sdds-themes', 'plasma-new-hope'],
73-
required: ['plasma-sb-utils', 'plasma-core', 'core-themes'],
73+
required: ['plasma-sb-utils', 'plasma-core', 'plasma-new-hope', 'core-themes'],
7474
themes: 'sdds-themes',
7575
},
7676
'sdds-cs': {
7777
scope: [...commonScope, 'sdds-themes', 'plasma-new-hope'],
78-
required: ['plasma-sb-utils', 'plasma-core', 'core-themes'],
78+
required: ['plasma-sb-utils', 'plasma-core', 'plasma-new-hope', 'core-themes'],
7979
themes: 'sdds-themes',
8080
},
8181
'sdds-finportal': {
8282
scope: [...commonScope, 'sdds-themes', 'plasma-new-hope'],
83-
required: ['plasma-sb-utils', 'plasma-core', 'core-themes'],
83+
required: ['plasma-sb-utils', 'plasma-core', 'plasma-new-hope', 'core-themes'],
8484
themes: 'sdds-themes',
8585
},
8686
'sdds-insol': {
Lines changed: 21 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,21 @@
1+
name: Cypress component testing by schedule every day at midnight
2+
3+
on:
4+
schedule:
5+
- cron: 0 0 * * *
6+
7+
jobs:
8+
cypress:
9+
name: "Cypress with React 17"
10+
strategy:
11+
fail-fast: false
12+
matrix:
13+
scope: [web,b2c,ui]
14+
15+
uses: ./.github/workflows/cypress-common.yml
16+
with:
17+
scope: ${{ matrix.scope }}
18+
with-react-17: true
19+
with-artifacts: true
20+
secrets: inherit
21+

.github/workflows/cypress-common.yml

Lines changed: 13 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -39,11 +39,21 @@ jobs:
3939
npm i --no-progress react@17 react-dom@17 @types/[email protected] @types/react-dom@17 --prefix="./packages/plasma-web"
4040
4141
- name: Lerna bootstrap
42-
run: npx lerna bootstrap --scope=@salutejs/plasma-${{env.SCOPE}} --scope="@salutejs/platform-test" --scope="@salutejs/core-themes"
43-
42+
uses: nick-fields/retry@v3
43+
with:
44+
timeout_minutes: 45
45+
max_attempts: 3
46+
retry_on: error
47+
command: npx lerna bootstrap --scope=@salutejs/plasma-${{env.SCOPE}} --scope="@salutejs/platform-test" --scope="@salutejs/core-themes"
48+
4449
- name: Run Cypress CT for Plasma ${{ inputs.scope }}
4550
if: ${{ success() }}
46-
run: npm run cy:${{ inputs.scope }}:run-ct
51+
uses: nick-fields/retry@v3
52+
with:
53+
timeout_minutes: 120
54+
max_attempts: 3
55+
retry_on: error
56+
command: npm run cy:${{ inputs.scope }}:run-ct
4757

4858
- name: Save artifacts
4959
if: ${{ failure() || inputs.with-artifacts }}

.github/workflows/cypress.yml

Lines changed: 0 additions & 14 deletions
Original file line numberDiff line numberDiff line change
@@ -33,17 +33,3 @@ jobs:
3333
with:
3434
scope: ${{ matrix.scope }}
3535
secrets: inherit
36-
37-
cypress-react-17:
38-
needs: state
39-
if: ${{ fromJSON(needs.state.outputs.STATE).HAS_PACKAGES_CYPRESS_RUN }}
40-
strategy:
41-
fail-fast: false
42-
matrix:
43-
scope: ${{ fromJson(needs.state.outputs.STATE).PACKAGES_CYPRESS_RUN }}
44-
45-
uses: ./.github/workflows/cypress-common.yml
46-
with:
47-
scope: ${{ matrix.scope }}
48-
with-react-17: true
49-
secrets: inherit

.github/workflows/publish-rc.yml

Lines changed: 2 additions & 96 deletions
Original file line numberDiff line numberDiff line change
@@ -1,73 +1,11 @@
11
name: Release RC
22

33
on:
4-
push:
5-
branches:
6-
- dev
4+
workflow_dispatch:
75

86
jobs:
9-
state:
10-
if: ${{ github.actor == 'github-merge-queue[bot]' }}
11-
name: State
12-
runs-on: ubuntu-22.04
13-
env:
14-
GITHUB_TOKEN: ${{ secrets.GH_TOKEN }}
15-
outputs:
16-
PR: ${{ steps.pull_request.outputs.result }}
17-
steps:
18-
## Получаем актуальное состояние dev branch
19-
- name: Checkout
20-
uses: actions/checkout@v4
21-
with:
22-
show-progress: false
23-
fetch-depth: 0
24-
25-
- name: Prepare environment
26-
uses: ./.github/actions/prepare-environment
27-
28-
## Получаем информацию о pull request который был влит
29-
## context.sha - это последний commit в dev ветку
30-
## base.sha - это последний commit base branch до влития целевого pull request
31-
- name: Get associated pull request by commit
32-
id: pull_request
33-
uses: actions/github-script@v6
34-
with:
35-
script: |
36-
const teammate = {
37-
Yakutoc: "alex_czech",
38-
'neretin-trike': "aaneretin",
39-
'Yeti-or': "yeti-or",
40-
TitanKuzmich: "aakrivonos",
41-
kayman233: "ivakudryavtsev",
42-
shuga2704: "shuga2704",
43-
};
44-
45-
const res = await github.rest.repos.listPullRequestsAssociatedWithCommit({
46-
commit_sha: context.sha,
47-
owner: context.repo.owner,
48-
repo: context.repo.repo,
49-
});
50-
51-
const {
52-
base: { sha = context.sha },
53-
title,
54-
user: { login }
55-
} = res?.data[0] || {};
56-
57-
return { sha, pr: title, user: teammate[login] || 'alex_czech' };
58-
59-
## Сохраняем вывод команды lerna ls в формате json array
60-
- name: Preserve lerna ls state
61-
id: lerna_ls
62-
env:
63-
SHA: ${{ fromJSON(steps.pull_request.outputs.result).sha }}
64-
run: |
65-
echo "RAW_DATA=$(npx lerna la --json --since=${{ env.SHA }} | jq -c)" >> "$GITHUB_OUTPUT"
66-
677
publish:
688
name: Publish RC version
69-
needs: [ state ]
70-
if: ${{ github.actor == 'github-merge-queue[bot]' }}
719
uses: ./.github/workflows/publish-common.yml
7210
with:
7311
with-update-package-lock: true
@@ -80,44 +18,12 @@ jobs:
8018
catch:
8119
name: Handle errors
8220
runs-on: ubuntu-22.04
83-
needs: [ state, publish ]
21+
needs: [ publish ]
8422
if: ${{ always() && contains(needs.*.result, 'failure') }}
85-
env:
86-
FAILED_JOB_NAME: ${{ contains(needs.change-state.result, 'failure') && 'State' || 'Publish RC version / publish' }}
87-
TITLE: ${{ fromJSON(needs.state.outputs.PR).pr }}
88-
USER: ${{ fromJSON(needs.state.outputs.PR).user }}
8923
steps:
90-
- name: Get failed job information
91-
id: job
92-
uses: actions/github-script@v6
93-
env:
94-
RUN_ID: ${{github.run_id}}
95-
FAILED_JOB_NAME: ${{ env.FAILED_JOB_NAME }}
96-
with:
97-
script: |
98-
const { RUN_ID, FAILED_JOB_NAME } = process.env;
99-
100-
const res = await github.rest.actions.listJobsForWorkflowRun({
101-
run_id: RUN_ID,
102-
owner: context.repo.owner,
103-
repo: context.repo.repo,
104-
});
105-
106-
const { data: { jobs: jobsList } } = res;
107-
108-
const { html_url, steps: stepsList } = jobsList.find(({ name }) => name === FAILED_JOB_NAME ) || {};
109-
110-
const { name } = stepsList.find(({ conclusion }) => conclusion === "failure" ) || { name: '' };
111-
112-
return { job: html_url, name }
113-
11424
- name: Send notification about failure state
11525
uses: mattermost/action-mattermost-notify@master
11626
with:
11727
MATTERMOST_WEBHOOK_URL: ${{ secrets.WEBHOOKS_NOTIFICATIONS_MM }}
11828
TEXT: |
11929
Публикация RC 💀
120-
121-
**PR**: ${{ env.TITLE }}
122-
**Failure step**: [${{ fromJSON(steps.job.outputs.result).name }}](${{ fromJSON(steps.job.outputs.result).job }})
123-
**Автор**: @${{ env.USER }}

cypress/config/b2b-config.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -15,5 +15,5 @@
1515
"threshold": 0
1616
},
1717
"video": false,
18-
"retries": 3
18+
"retries": 5
1919
}

cypress/config/b2c-config.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -11,5 +11,5 @@
1111
"threshold": 0
1212
},
1313
"video": false,
14-
"retries": 3
14+
"retries": 5
1515
}

cypress/config/web-config.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -11,5 +11,5 @@
1111
"threshold": 0
1212
},
1313
"video": false,
14-
"retries": 3
14+
"retries": 5
1515
}
Lines changed: 47 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,47 @@
1+
@font-face {
2+
font-family: 'SB Sans Display';
3+
src: url('../fonts/SBSansDisplay-Light.woff2') format('woff2'),
4+
url('../fonts/SBSansDisplay-Light.woff') format('woff');
5+
font-weight: 300;
6+
font-style: normal;
7+
}
8+
9+
@font-face {
10+
font-family: 'SB Sans Display';
11+
src: url('../fonts/SBSansDisplay-Thin.woff2') format('woff2'),
12+
url('../fonts/SBSansDisplay-Thin.woff') format('woff');
13+
font-weight: 100;
14+
font-style: normal;
15+
}
16+
17+
@font-face {
18+
font-family: 'SB Sans Display';
19+
src: url('../fonts/SBSansDisplay-Bold.woff2') format('woff2'),
20+
url('../fonts/SBSansDisplay-Bold.woff') format('woff');
21+
font-weight: bold;
22+
font-style: normal;
23+
}
24+
25+
@font-face {
26+
font-family: 'SB Sans Display';
27+
src: url('../fonts/SBSansDisplay-Regular.woff2') format('woff2'),
28+
url('../fonts/SBSansDisplay-Regular.woff') format('woff');
29+
font-weight: normal;
30+
font-style: normal;
31+
}
32+
33+
@font-face {
34+
font-family: 'SB Sans Display';
35+
src: url('../fonts/SBSansDisplay-Semibold.woff2') format('woff2'),
36+
url('../fonts/SBSansDisplay-Semibold.woff') format('woff');
37+
font-weight: 600;
38+
font-style: normal;
39+
}
40+
41+
@font-face {
42+
font-family: 'SB Sans Display';
43+
src: url('../fonts/SBSansDisplay-Medium.woff2') format('woff2'),
44+
url('../fonts/SBSansDisplay-Medium.woff') format('woff');
45+
font-weight: 500;
46+
font-style: normal;
47+
}

0 commit comments

Comments
 (0)