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

[WIP] Feature #3417 - Implement tuiDropdownDirectionChange & tuiHintDirectionChange #9645

Closed
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
95 commits
Select commit Hold shift + click to select a range
8460c3d
chore(demo-playwright): `InputDate` add test click any day after `Unt…
mdlufy Oct 23, 2024
fbde61c
chore(demo-playwright): `InputDate` use button selector instead `auto…
mdlufy Oct 23, 2024
7274113
chore(demo-playwright): use `CalendarSheet` page object
mdlufy Oct 24, 2024
a775aee
chore(demo-playwright): `CalendarSheet` create inside test
mdlufy Oct 24, 2024
223e867
fix(core): `DropdownOpen` fix initial open state (#9581)
waterplea Oct 24, 2024
6a60823
fix(layout): `Navigation` fix drawer positioning (#9594)
waterplea Oct 24, 2024
ea3b9a6
chore: disable squash automerge in release branch (#9560)
vladimirpotekhin Oct 24, 2024
305d114
chore(demo): hide search button if algolia is not available (#9579)
vladimirpotekhin Oct 24, 2024
bf450fa
fix(kit): `Badge` fix font size on desktop (#9593)
vladimirpotekhin Oct 24, 2024
15fa610
chore(demo): update description to improve search (#9596)
vladimirpotekhin Oct 24, 2024
4c49898
feat(legacy): `InputTime` & `InputDateTime` support `AM` / `PM` forma…
nsbarsukov Oct 24, 2024
55f9d22
feat(core): `Calendar` not switch to large date
mdlufy Oct 23, 2024
7f7af36
feat(addon-mobile): `MobileCalendar` add (mousedown.prevent)
mdlufy Oct 24, 2024
4187f1a
chore(demo-playwright): `InputDate` add test for click `Until today`
mdlufy Oct 24, 2024
9bbb22e
chore: update dependency cypress to v13.15.1 (#9606)
taiga-family-bot Oct 24, 2024
5b20c61
feat(core): `Popup` add service for arbitrary portal items (#9605)
waterplea Oct 25, 2024
f75f8ce
fix(addon-commerce): `ThumbnailCard` with blur effect should keep its…
nsbarsukov Oct 25, 2024
f79c6d2
refactor(kit): change context access modifier in TuiConfirm (#9610)
scrolltex Oct 25, 2024
60d1949
refactor(addon-commerce): simplify html-structure of `ThumbnailCard` …
nsbarsukov Oct 25, 2024
5d13462
chore: update dependency @types/node to v22.8.0 (#9613)
taiga-family-bot Oct 25, 2024
3738060
feat(kit): `TuiInputPhoneInternational` has separator customization (…
nezar-khamidekh Oct 25, 2024
a3b8565
chore: update dependency @playwright/test to v1.48.2 (#9615)
taiga-family-bot Oct 25, 2024
fddb950
chore: update nx to v20.0.6 (#9616)
taiga-family-bot Oct 25, 2024
18f2a00
chore: update dependency @types/node to v22.8.1 (#9617)
taiga-family-bot Oct 25, 2024
410390b
chore: update taiga-family/ci action to v1.93.5 (#9621)
taiga-family-bot Oct 28, 2024
215c383
chore: update dependency @taiga-ui/design-tokens to v0.145.0 (#9622)
taiga-family-bot Oct 28, 2024
a97b596
chore(cdk): fix migration issues (#9603)
vladimirpotekhin Oct 28, 2024
5b05e0f
feat(kit): `Drawer` add new component (#9614)
waterplea Oct 28, 2024
2e6b322
chore(cdk): fix labeled migration (#9602)
vladimirpotekhin Oct 28, 2024
4f5b1cd
chore: add `@taiga-ui/jest-config` to `IGNORABLE_TAIGA_PACKAGES` (#9573)
nsbarsukov Oct 28, 2024
0574b09
chore(release): 4.13.0
github-actions[bot] Oct 28, 2024
a15665e
chore: update dependency parse5 to >=7.2.1 (#9624)
taiga-family-bot Oct 28, 2024
fd5fd1e
chore: update dependency lucide-static to v0.454.0 (#9628)
taiga-family-bot Oct 28, 2024
5fe60ed
chore: update dependency @types/node to v22.8.2 (#9629)
taiga-family-bot Oct 28, 2024
85172a1
chore(demo-playwright): new tests for `ThumbnailCard` (#9631)
nsbarsukov Oct 29, 2024
d6a1e6a
fix(legacy): `InputPhone` fix format paste if value has space after p…
nezar-khamidekh Oct 29, 2024
03677a4
chore: update dependency @types/node to v22.8.4 (#9636)
taiga-family-bot Oct 29, 2024
412ef49
chore: update dependency @taiga-ui/design-tokens to v0.146.0 (#9637)
taiga-family-bot Oct 29, 2024
f394245
chore: update maskito to ^3.2.0 (#9639)
taiga-family-bot Oct 30, 2024
6618958
fix(kit): `Files` fix link styles (#9635)
vladimirpotekhin Oct 30, 2024
38b7c8e
feat(core): implement tuiDropdownDirectionChange
shiv9604 Oct 30, 2024
856bdc1
feat(core): implement tuiHintDirectionChange
shiv9604 Oct 30, 2024
b4368b2
chore: update w9jds/firebase-action action to v13.23.1 (#9646)
taiga-family-bot Oct 31, 2024
8074839
chore: update dependency @types/node to v22.8.5 (#9647)
taiga-family-bot Oct 31, 2024
4c75116
chore: update dependency @docsearch/js to v3.6.3 (#9652)
taiga-family-bot Oct 31, 2024
fe858bc
chore: update dependency @types/node to v22.8.6 (#9653)
taiga-family-bot Oct 31, 2024
a985159
feat(layout): `BlockStatus` add desktop "m" size (#9651)
vladimirpotekhin Nov 1, 2024
2edce74
fix(kit): `Switch` should have dark knob for the dark theme in web pl…
nsbarsukov Nov 1, 2024
11234c5
chore: update dependency tslib to v2.8.1 (#9656)
taiga-family-bot Nov 1, 2024
0fabc9b
chore: update dependency tslib to >=2.8.1 (#9655)
taiga-family-bot Nov 1, 2024
568ee12
chore: update dependency webpack to v5.96.1 (#9661)
taiga-family-bot Nov 1, 2024
4c7bbfb
feat(kit): `TuiFile` added tuiHintOverflow for file name (#9659)
nezar-khamidekh Nov 1, 2024
535f2c9
fix(legacy): `InputTime` & `InputDateTime` should switch `inputMode` …
nsbarsukov Nov 2, 2024
d36599e
chore: update to v20.0.7 (#9660)
taiga-family-bot Nov 2, 2024
4815b59
chore: update @taiga-ui/browserslist-config to v0.231.0 (#9671)
taiga-family-bot Nov 2, 2024
a8cf600
chore: update to v20.0.8 (#9677)
taiga-family-bot Nov 4, 2024
c7218ba
chore: update dependency @types/node to v22.9.0 (#9674)
taiga-family-bot Nov 5, 2024
e6f09a2
chore: update w9jds/firebase-action action to v13.24.0 (#9682)
taiga-family-bot Nov 5, 2024
a63a3b1
chore: update dependency cypress-image-diff-js to v2.2.2 (#9684)
taiga-family-bot Nov 5, 2024
692e64e
fix(core): do not hide scrollbars on desktop when dialog is open (#9633)
vladimirpotekhin Nov 5, 2024
3c784e5
chore: update dependency cypress-image-diff-js to v2.3.0 (#9685)
taiga-family-bot Nov 5, 2024
72761ba
feat(core): tuiHintDirection priority list (#9669)
m-chuguev Nov 5, 2024
3230b0a
fix(kit): `Stepper` fix flashing styles (#9638)
vladimirpotekhin Nov 5, 2024
412ae64
chore: extend meta for tui-db (#9673)
vladimirpotekhin Nov 5, 2024
ed9cde7
fix(kit): `CalendarRange` switch months if any input updated, when da…
mdlufy Nov 5, 2024
d589d8b
chore(demo): `Chip` add autocolor example, add api page (#9667)
vladimirpotekhin Nov 5, 2024
3a30eca
chore: update taiga-family/ci action to v1.94.0 (#9678)
taiga-family-bot Nov 5, 2024
e4e02df
fix(addon-mobile): `TuiElasticStickyService` teardown observable zone…
nezar-khamidekh Nov 5, 2024
25eb2c0
fix(legacy): `InputDate` incorrect value after backspace
mdlufy Oct 31, 2024
6687fff
fix(legacy): `InputDate` nativeValue set empty instead of handle mask
mdlufy Oct 31, 2024
96cadd6
chore(legacy): `InputDate` use `activeItem` to check
mdlufy Nov 3, 2024
1aa4ddf
chore(legacy): `InputDate` add test for several items
mdlufy Nov 5, 2024
befc85b
chore: update dependency @taiga-ui/design-tokens to v0.147.0 (#9687)
taiga-family-bot Nov 5, 2024
f8cfea6
chore: explicit run e2e type check (#9668)
splincode Nov 5, 2024
8f1d0f6
chore(release): 4.14.0
github-actions[bot] Nov 5, 2024
c3a5e46
chore: use `*.pw.spec.ts` postfix for playwright tests (#9672)
splincode Nov 5, 2024
525a9ef
chore: correct inject playwright cache (#9670)
splincode Nov 5, 2024
a212a8d
fix: remove default styling from `a` tag in card component (#9681)
michalgrzegorczyk-dev Nov 5, 2024
05f7eaa
feat(kit): add `ProgressFixedGradient` directive for `ProgressBar` (#…
afferenslucem Nov 5, 2024
82a3af7
chore: update taiga-family/ci action to v1.94.0 (#9692)
taiga-family-bot Nov 5, 2024
25edf5b
chore: update dependency @docsearch/js to v3.7.0 (#9691)
taiga-family-bot Nov 5, 2024
0ca295c
chore: update dependency cypress to v13.15.2 (#9697)
taiga-family-bot Nov 6, 2024
60cf64a
chore: update w9jds/firebase-action action to v13.24.1 (#9699)
taiga-family-bot Nov 6, 2024
94c683d
ci: add shard matrix (#9689)
splincode Nov 6, 2024
9b99a27
ci: add popular e2e chromium flags (#9690)
splincode Nov 6, 2024
47b826b
fix(kit): `CalendarRange` not switch month with selected value (#9695)
mdlufy Nov 6, 2024
c569ae3
chore(demo): update `Textfield` + `Maskito` example (#9693)
nsbarsukov Nov 6, 2024
72fe159
chore: add migration warnings (#9701)
vladimirpotekhin Nov 6, 2024
249ef0f
chore(demo): prevent DDoS github api from e2e tests (#9706)
splincode Nov 6, 2024
3239faf
feat(core): add readable media aliases (#9696)
splincode Nov 6, 2024
b0c962b
feat(core): resolve pr comments
shiv9604 Nov 6, 2024
945542b
fix(legacy): fix icons looking interactive in readonly textfields (#9…
waterplea Nov 7, 2024
4169331
chore(docs): #9644 Added top position example for `ActionBar` (#9654)
40oleg Nov 7, 2024
deabb6d
feat(layout): `AppBarBack` add ability to use custom appearance (#9715)
vladimirpotekhin Nov 7, 2024
9f49f6b
chore: update meta for db (#9703)
vladimirpotekhin Nov 7, 2024
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
The table of contents is too big for display.
Diff view
Diff view
  •  
  •  
  •  
7 changes: 1 addition & 6 deletions .cspell.json
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@
"import": ["@taiga-ui/cspell-config/cspell.config.js"],
"files": ["*/*.*"],
"ignorePaths": ["**/projects/i18n/languages/**", "**/addon-commerce/utils/get-currency-symbol.ts"],
"ignoreWords": ["Wachovia", "bottomsheet", "appbar"],
"ignoreWords": ["Wachovia", "bottomsheet", "appbar", "qwertypgj_", "antialiasing"],
"ignoreRegExpList": ["\\(https?://.*?\\)", "\\/{1}.+\\/{1}", "\\%2F.+", "\\%2C.+", "\\ɵ.+", "\\ыва.+"],
"overrides": [
{
Expand All @@ -27,11 +27,6 @@
"languageId": "ts",
"filename": ["**/tests/schematic-migrate-sliders.spec.ts"],
"ignoreWords": ["Maxxxxx"]
},
{
"languageId": "ts",
"filename": ["**/textarea.spec.ts"],
"ignoreWords": ["qwertypgj_"]
}
]
}
2 changes: 1 addition & 1 deletion .github/workflows/assign-author.yml
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@ jobs:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4.2.2
- uses: taiga-family/ci/actions/setup/variables@v1.93.4
- uses: taiga-family/ci/actions/setup/variables@v1.94.0
- uses: toshimaru/auto-author-assign@v2.1.1
continue-on-error: true

Expand Down
11 changes: 6 additions & 5 deletions .github/workflows/auto-merge.yml
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@ jobs:
matrix: ${{ steps.matrix.outputs.value }}
steps:
- uses: actions/checkout@v4.2.2
- uses: taiga-family/ci/actions/setup/variables@v1.93.4
- uses: taiga-family/ci/actions/setup/variables@v1.94.0
- id: matrix
if: env.IS_TAIGA_FAMILY_BOT_PR_AUTHOR == 'true'
run: |
Expand All @@ -31,7 +31,7 @@ jobs:
matrix:
value: ${{ fromJSON(needs.setup.outputs.matrix) }}
steps:
- uses: taiga-family/ci/actions/run/wait-job@v1.93.4
- uses: taiga-family/ci/actions/run/wait-job@v1.94.0
with:
token: ${{ secrets.GITHUB_TOKEN }}
job: ${{ matrix.value }}
Expand All @@ -41,16 +41,17 @@ jobs:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4.2.2
- uses: taiga-family/ci/actions/setup/variables@v1.93.4
- uses: taiga-family/ci/actions/auto/approve/double@v1.93.4
- uses: taiga-family/ci/actions/setup/variables@v1.94.0
- uses: taiga-family/ci/actions/auto/approve/double@v1.94.0
if: env.IS_TAIGA_FAMILY_BOT_PR_AUTHOR == 'true'
with:
token1: ${{ secrets.GITHUB_TOKEN }}
token2: ${{ secrets.TAIGA_FAMILY_APPROVE_BOT_PAT }}
- uses: taiga-family/ci/actions/run/merge@v1.93.4
- uses: taiga-family/ci/actions/run/merge@v1.94.0
if: env.IS_TAIGA_FAMILY_BOT_PR_AUTHOR == 'true'
with:
token: ${{ secrets.TAIGA_FAMILY_BOT_PAT }}
merge-method: ${{ (contains(github.head_ref, 'release/') && 'merge') || 'squash' }}

concurrency:
group: ${{ github.workflow }}-${{ github.ref }}
Expand Down
6 changes: 3 additions & 3 deletions .github/workflows/auto-update-icons.yml
Original file line number Diff line number Diff line change
Expand Up @@ -11,8 +11,8 @@ jobs:
- uses: actions/checkout@v4.2.2
with:
persist-credentials: false
- uses: taiga-family/ci/actions/setup/variables@v1.93.4
- uses: taiga-family/ci/actions/setup/node@v1.93.4
- uses: taiga-family/ci/actions/setup/variables@v1.94.0
- uses: taiga-family/ci/actions/setup/node@v1.94.0
- name: Lucide icons
run: |
npx nx prebuild icons
Expand All @@ -31,7 +31,7 @@ jobs:
npx eslint ./projects/demo/used-icons.ts --fix || echo "no file matching"
npx prettier ./projects/demo/used-icons.ts --write || echo "no file matching"
npx prettier ./projects/cdk/constants/used-icons.ts --write || echo "no file matching"
- uses: taiga-family/ci/actions/auto/push@v1.93.4
- uses: taiga-family/ci/actions/auto/push@v1.94.0
if: env.SUPPORT_AUTO_PUSH
with:
message: icons have changed
Expand Down
8 changes: 4 additions & 4 deletions .github/workflows/build.yml
Original file line number Diff line number Diff line change
Expand Up @@ -11,8 +11,8 @@ jobs:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4.2.2
- uses: taiga-family/ci/actions/setup/variables@v1.93.4
- uses: taiga-family/ci/actions/setup/node@v1.93.4
- uses: taiga-family/ci/actions/setup/variables@v1.94.0
- uses: taiga-family/ci/actions/setup/node@v1.94.0
- run: npm run run-many:build:libs
- run: npx ts-node ./scripts/check-dist.ts

Expand All @@ -22,8 +22,8 @@ jobs:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4.2.2
- uses: taiga-family/ci/actions/setup/variables@v1.93.4
- uses: taiga-family/ci/actions/setup/node@v1.93.4
- uses: taiga-family/ci/actions/setup/variables@v1.94.0
- uses: taiga-family/ci/actions/setup/node@v1.94.0
- run: npx nx prerender demo
- run: npx --yes bundlemon --config .github/.bundlemonrc.json
continue-on-error: true
Expand Down
4 changes: 2 additions & 2 deletions .github/workflows/cleanup-resources.yml
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@ jobs:
GH_TOKEN: ${{ github.token }}
steps:
- uses: actions/checkout@v4.2.2
- uses: taiga-family/ci/actions/setup/variables@v1.93.4
- uses: taiga-family/ci/actions/setup/variables@v1.94.0
- run: gh cache delete ${{ env.CACHE_DIST_KEY }}
continue-on-error: true

Expand All @@ -19,7 +19,7 @@ jobs:
timeout-minutes: 10
steps:
- uses: actions/checkout@v4.2.2
- uses: w9jds/firebase-action@v13.23.0
- uses: w9jds/firebase-action@v13.24.1
continue-on-error: true
with:
args: hosting:channel:delete pr${{ github.event.number }}-${{ github.head_ref }} --force
Expand Down
4 changes: 2 additions & 2 deletions .github/workflows/create-release.yml
Original file line number Diff line number Diff line change
Expand Up @@ -24,8 +24,8 @@ jobs:
with:
fetch-depth: 0
token: ${{ secrets.TAIGA_FAMILY_BOT_PAT }}
- uses: taiga-family/ci/actions/setup/node@v1.93.4
- uses: taiga-family/ci/actions/setup/config/git@v1.93.4
- uses: taiga-family/ci/actions/setup/node@v1.94.0
- uses: taiga-family/ci/actions/setup/config/git@v1.94.0
with:
token: ${{ secrets.TAIGA_FAMILY_BOT_PAT }}

Expand Down
2 changes: 1 addition & 1 deletion .github/workflows/deploy-gh-pages.yml
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,7 @@ jobs:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4.2.2
- uses: taiga-family/ci/actions/setup/variables@v1.93.4
- uses: taiga-family/ci/actions/setup/variables@v1.94.0

- name: Prepare demo before deploy from snapshots
run: |
Expand Down
4 changes: 2 additions & 2 deletions .github/workflows/deploy-preview.yml
Original file line number Diff line number Diff line change
Expand Up @@ -8,8 +8,8 @@ jobs:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4.2.2
- uses: taiga-family/ci/actions/setup/variables@v1.93.4
- uses: taiga-family/ci/actions/setup/node@v1.93.4
- uses: taiga-family/ci/actions/setup/variables@v1.94.0
- uses: taiga-family/ci/actions/setup/node@v1.94.0
- run: npx nx build demo
- name: Debug output
run: tree dist/demo/browser -P '*.html'
Expand Down
90 changes: 62 additions & 28 deletions .github/workflows/e2e.yml
Original file line number Diff line number Diff line change
Expand Up @@ -2,12 +2,6 @@ name: ⚙️ E2E testing
on:
pull_request:

env:
CYPRESS_BASELINE_REPO: 'baseline'
CYPRESS_RESULTS_FOLDER: 'projects/demo-cypress/tests-results'
CYPRESS_BASELINE_SNAPSHOTS: 'projects/demo-cypress/tests-results/snapshots/baseline'
CYPRESS_BASELINE_SNAPSHOTS_KEY: 'cy_baseline_${{ github.event.pull_request.head.sha }}'

jobs:
build-demo:
if: ${{ !contains(github.head_ref , 'release/') }}
Expand All @@ -17,11 +11,12 @@ jobs:
- uses: actions/checkout@v4.2.2
with:
fetch-depth: 10
- uses: taiga-family/ci/actions/setup/variables@v1.93.4
- uses: taiga-family/ci/actions/run/rebase@v1.93.4
- uses: taiga-family/ci/actions/setup/variables@v1.94.0
- uses: taiga-family/ci/actions/run/rebase@v1.94.0
continue-on-error: true
- uses: taiga-family/ci/actions/setup/node@v1.93.4
- uses: taiga-family/ci/actions/setup/node@v1.94.0

- run: npx nx type-check demo-playwright
- name: Building demo-app of git-branch without cache
run: npx nx build demo # Don't use prerender please, because it's flaky for e2e

Expand All @@ -34,12 +29,17 @@ jobs:
cypress:
runs-on: ubuntu-latest
name: Cypress / Component Testing
env:
CYPRESS_BASELINE_REPO: 'baseline'
CYPRESS_RESULTS_FOLDER: 'projects/demo-cypress/tests-results'
CYPRESS_BASELINE_SNAPSHOTS: 'projects/demo-cypress/tests-results/snapshots/baseline'
CYPRESS_BASELINE_SNAPSHOTS_KEY: 'cy_baseline_${{ github.event.pull_request.head.sha }}'
steps:
- uses: actions/checkout@v4.2.2
with:
ref: ${{ github.base_ref }}
- uses: taiga-family/ci/actions/setup/variables@v1.93.4
- uses: taiga-family/ci/actions/setup/node@v1.93.4
- uses: taiga-family/ci/actions/setup/variables@v1.94.0
- uses: taiga-family/ci/actions/setup/node@v1.94.0

- name: Run tests for baseline state
run: npx nx component-test demo-cypress
Expand All @@ -54,8 +54,8 @@ jobs:
retention-days: 1

- uses: actions/checkout@v4.2.2
- uses: taiga-family/ci/actions/setup/variables@v1.93.4
- uses: taiga-family/ci/actions/setup/node@v1.93.4
- uses: taiga-family/ci/actions/setup/variables@v1.94.0
- uses: taiga-family/ci/actions/setup/node@v1.94.0

- name: Download Cypress Baseline Snapshots
uses: actions/download-artifact@v4.1.8
Expand Down Expand Up @@ -91,45 +91,80 @@ jobs:
needs: [build-demo]
strategy:
fail-fast: false
max-parallel: 9
matrix:
shardIndex: [1, 2, 3, 4, 5, 6, 7, 8, 9]
shardTotal: [9]
name: Playwright / (${{ matrix.shardIndex }} of ${{ matrix.shardTotal }})
shard: [
# Chrome
{index: 1, os: 'ubuntu-latest', project: 'chromium', total: 9},
{index: 2, os: 'ubuntu-latest', project: 'chromium', total: 9},
{index: 3, os: 'ubuntu-latest', project: 'chromium', total: 9},
{index: 4, os: 'ubuntu-latest', project: 'chromium', total: 9},
{index: 5, os: 'ubuntu-latest', project: 'chromium', total: 9},
{index: 6, os: 'ubuntu-latest', project: 'chromium', total: 9},
{index: 7, os: 'ubuntu-latest', project: 'chromium', total: 9},
{index: 8, os: 'ubuntu-latest', project: 'chromium', total: 9},
{index: 9, os: 'ubuntu-latest', project: 'chromium', total: 9},
]
name: Playwright / ${{ matrix.shard.os }} / ${{ matrix.shard.index }} of ${{ matrix.shard.total }}
steps:
- uses: actions/checkout@v4.2.2
- uses: taiga-family/ci/actions/setup/variables@v1.93.4
- uses: taiga-family/ci/actions/setup/node@v1.93.4
- uses: taiga-family/ci/actions/setup/playwright@v1.93.4
- uses: taiga-family/ci/actions/setup/variables@v1.94.0
- uses: taiga-family/ci/actions/setup/node@v1.94.0

- name: Get installed Playwright version
id: playwright-version
run: |
echo "PLAYWRIGHT_VERSION=$(node -p 'require("./projects/demo-playwright/package.json").devDependencies["@playwright/test"]')" >> $GITHUB_ENV

- uses: actions/cache/restore@v4.1.2
id: playwright-cache
with:
path: |
~/Library/Caches/ms-playwright
~/.cache/ms-playwright
**/node_modules/playwright
key: ${{ runner.os }}-playwright-${{ env.PLAYWRIGHT_VERSION }}
- run: npx playwright install --with-deps
if: steps.playwright-cache.outputs.cache-hit != 'true'
- run: npx playwright install-deps
if: steps.playwright-cache.outputs.cache-hit != 'true'

- name: Download cache / ${{ env.CACHE_DIST_KEY }}
uses: actions/cache/restore@v4.1.2
with:
path: dist/demo
key: ${{ env.CACHE_DIST_KEY }}

- uses: taiga-family/ci/actions/run/serve@v1.93.4
- uses: taiga-family/ci/actions/run/serve@v1.94.0
with:
port: ${{ env.NG_SERVER_PORT }}
directory: ${{ env.DIST }}
replaceBaseUrl: false

- name: Run screenshot tests on ${{ env.DIST }}
run: npx nx e2e demo-playwright -- --update-snapshots --shard=${{ matrix.shardIndex }}/${{ matrix.shardTotal }}
run: |
npx nx e2e demo-playwright -- \
--update-snapshots \
--project=${{ matrix.shard.project }} \
--shard=${{ matrix.shard.index }}/${{ matrix.shard.total }}

- uses: taiga-family/ci/actions/run/clone@v1.93.4
- uses: taiga-family/ci/actions/run/clone@v1.94.0
with:
branch: snapshots/demo/next/${{ github.base_ref }}
destination: ${{ env.DIST_NEXT }}

- uses: taiga-family/ci/actions/run/serve@v1.93.4
- uses: taiga-family/ci/actions/run/serve@v1.94.0
with:
port: ${{ env.NG_SERVER_PORT }}
directory: ${{ env.DIST_NEXT }}
replaceBaseUrl: false

- name: Run screenshot tests on ${{ env.DIST_NEXT }}
continue-on-error: true
run: npx nx e2e demo-playwright --shard=${{ matrix.shardIndex }}/${{ matrix.shardTotal }}
run: |
npx nx e2e demo-playwright -- \
--project=${{ matrix.shard.project }} \
--shard=${{ matrix.shard.index }}/${{ matrix.shard.total }}

- name: Combine images to get diff reports
run: |
Expand All @@ -147,7 +182,7 @@ jobs:
path: |
./projects/demo-playwright/tests-results/**/*.diff.png
!./projects/demo-playwright/tests-results/**/*-retry*/*.diff.png
name: '${{ env.PLAYWRIGHT_SNAPSHOTS_ARTIFACTS_KEY }}_${{ matrix.shardIndex }}'
name: '${{ env.PLAYWRIGHT_SNAPSHOTS_ARTIFACTS_KEY }}_${{ matrix.shard.project }}_${{ matrix.shard.index }}'
if-no-files-found: ignore
compression-level: 0
retention-days: 1
Expand All @@ -157,8 +192,7 @@ jobs:
playwright-composite-result:
name: Playwright E2E Tests matrix result
if: ${{ always() }}
needs:
- playwright
needs: [playwright]
runs-on: ubuntu-latest
steps:
- run: |
Expand All @@ -177,7 +211,7 @@ jobs:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4.2.2
- uses: taiga-family/ci/actions/setup/variables@v1.93.4
- uses: taiga-family/ci/actions/setup/variables@v1.94.0

- name: Download artifacts for Playwright
continue-on-error: true
Expand Down
6 changes: 3 additions & 3 deletions .github/workflows/lint.yml
Original file line number Diff line number Diff line change
Expand Up @@ -13,8 +13,8 @@ jobs:
- uses: actions/checkout@v4.2.2
with:
persist-credentials: false
- uses: taiga-family/ci/actions/setup/variables@v1.93.4
- uses: taiga-family/ci/actions/setup/node@v1.93.4
- uses: taiga-family/ci/actions/setup/variables@v1.94.0
- uses: taiga-family/ci/actions/setup/node@v1.94.0
- run: npm run typecheck
- run: npm run cspell
- run: |
Expand All @@ -27,7 +27,7 @@ jobs:
npm run prettier -- --check
npm run lint
fi
- uses: taiga-family/ci/actions/auto/push@v1.93.4
- uses: taiga-family/ci/actions/auto/push@v1.94.0
with:
token: ${{ secrets.TAIGA_FAMILY_BOT_PAT }}

Expand Down
6 changes: 3 additions & 3 deletions .github/workflows/publish-canary.yml
Original file line number Diff line number Diff line change
Expand Up @@ -10,9 +10,9 @@ jobs:
name: Publish canary
steps:
- uses: actions/checkout@v4.2.2
- uses: taiga-family/ci/actions/setup/variables@v1.93.4
- uses: taiga-family/ci/actions/setup/node@v1.93.4
- uses: taiga-family/ci/actions/setup/config/npm@v1.93.4
- uses: taiga-family/ci/actions/setup/variables@v1.94.0
- uses: taiga-family/ci/actions/setup/node@v1.94.0
- uses: taiga-family/ci/actions/setup/config/npm@v1.94.0
with:
token: ${{ secrets.TAIGA_UI_SCOPE_NPM_TOKEN }}
- run: npx ts-node ./scripts/publish-canary.ts
Expand Down
Loading