Skip to content

Commit

Permalink
Merge branch 'main' into lunory/icon-additional-items
Browse files Browse the repository at this point in the history
  • Loading branch information
Lunory authored Aug 5, 2024
2 parents 65e8524 + 2cbdb99 commit fa924d1
Show file tree
Hide file tree
Showing 191 changed files with 18,330 additions and 17,538 deletions.
41 changes: 41 additions & 0 deletions .github/workflows/playwright.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,41 @@
name: Playwright Tests

on:
pull_request:

jobs:
test:
name: Test component
runs-on: ubuntu-latest
container:
image: mcr.microsoft.com/playwright:v1.45.3-jammy
steps:
- uses: actions/checkout@v3
- uses: actions/setup-node@v3
with:
node-version: 18
- name: Install dependencies
run: npm ci
- name: Run Playwright tests
run: npm run playwright
env:
CI: 'true'
- name: Upload Playwright playwright report to GitHub Actions Artifacts
if: always()
uses: actions/upload-artifact@v3
with:
name: playwright-report
path: ./playwright-report
retention-days: 1
- name: Save PR ID
if: always()
run: |
pr="${{ github.event.pull_request.number }}"
echo $pr > ./pr-id.txt
shell: bash
- name: Create PR Artifact
if: always()
uses: actions/upload-artifact@v3
with:
name: pr
path: ./pr-id.txt
38 changes: 38 additions & 0 deletions .github/workflows/pr-playwright-report.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,38 @@
name: PR Playwright Report

on:
workflow_run:
workflows: ['Playwright Tests']
types:
- completed

jobs:
comment:
name: Upload Playwright report to s3
if: github.event.workflow_run.event == 'pull_request'
runs-on: ubuntu-latest
steps:
- name: Download Artifacts
uses: dawidd6/action-download-artifact@v2
with:
workflow: ${{ github.event.workflow_run.workflow_id }}
run_id: ${{ github.event.workflow_run.id }}
- name: Extract PR Number
id: pr
run: echo "::set-output name=id::$(<pr/pr-id.txt)"
shell: bash
- name: Upload
env:
AWS_ACCESS_KEY_ID: ${{ secrets.STORYBOOK_S3_KEY_ID }}
AWS_SECRET_ACCESS_KEY: ${{ secrets.STORYBOOK_S3_SECRET_KEY }}
AWS_DEFAULT_REGION: ru-central1
AWS_EC2_METADATA_DISABLED: true
run: aws s3 cp playwright-report s3://playwright-reports/navigation/pulls/${{ steps.pr.outputs.id }}/ --endpoint-url=https://storage.yandexcloud.net --recursive
shell: bash
- name: Create Comment
uses: marocchino/sticky-pull-request-comment@v2
with:
GITHUB_TOKEN: ${{ secrets.GRAVITY_UI_BOT_GITHUB_TOKEN }}
number: ${{ steps.pr.outputs.id }}
header: playwright test
message: '[Playwright Test Component](https://storage.yandexcloud.net/playwright-reports/navigation/pulls/${{ steps.pr.outputs.id }}/index.html) is ready.'
6 changes: 6 additions & 0 deletions .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -12,4 +12,10 @@ build
# other files
pnpm-lock.yaml

#Playwright
/playwright/playwright/.cache
/playwright-report
/test-results

# other files
pnpm-lock.yaml
1 change: 1 addition & 0 deletions .storybook/styles.scss
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
@import '~@doc-tools/transform/dist/css/yfm.css';
@import '~@gravity-ui/uikit/styles/fonts.scss';

body {
padding: 0;
Expand Down
42 changes: 42 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,5 +1,47 @@
# Changelog

## [2.20.0](https://github.com/gravity-ui/navigation/compare/v2.19.0...v2.20.0) (2024-08-02)


### Features

* **Drawer:** add veil color to CSS API, shadow for DrawerItem ([#290](https://github.com/gravity-ui/navigation/issues/290)) ([0a8637b](https://github.com/gravity-ui/navigation/commit/0a8637bc41095221963827c7bc321abbf714cd10))

## [2.19.0](https://github.com/gravity-ui/navigation/compare/v2.18.0...v2.19.0) (2024-08-01)


### Features

* **AsideHeader:** add background color to CSS API ([#287](https://github.com/gravity-ui/navigation/issues/287)) ([f56c02b](https://github.com/gravity-ui/navigation/commit/f56c02b99494070e587c18c875613de75acc2410))

## [2.18.0](https://github.com/gravity-ui/navigation/compare/v2.17.2...v2.18.0) (2024-07-31)


### Features

* **Header:** make logo optional, expand css api ([#283](https://github.com/gravity-ui/navigation/issues/283)) ([f994709](https://github.com/gravity-ui/navigation/commit/f994709fff90a751bd9f79a3a93894bf21e0391b))

## [2.17.2](https://github.com/gravity-ui/navigation/compare/v2.17.1...v2.17.2) (2024-07-30)


### Bug Fixes

* close other panels when all pages panel opening ([#279](https://github.com/gravity-ui/navigation/issues/279)) ([14a2f0f](https://github.com/gravity-ui/navigation/commit/14a2f0fcd2abb915621a61ce52bfe22626e1992d))

## [2.17.1](https://github.com/gravity-ui/navigation/compare/v2.17.0...v2.17.1) (2024-07-22)


### Bug Fixes

* **Drawer:** change disablePortal default value ([#274](https://github.com/gravity-ui/navigation/issues/274)) ([31cd649](https://github.com/gravity-ui/navigation/commit/31cd6496ce191f5ea2aa6ac3441bef0be7bc88b1))

## [2.17.0](https://github.com/gravity-ui/navigation/compare/v2.16.0...v2.17.0) (2024-07-22)


### Features

* **Drawer:** resizer, portal rendering, hide veil ([#270](https://github.com/gravity-ui/navigation/issues/270)) ([64da0f2](https://github.com/gravity-ui/navigation/commit/64da0f2c436706a82d8c984684868f51616bb88d))

## [2.16.0](https://github.com/gravity-ui/navigation/compare/v2.15.3...v2.16.0) (2024-06-27)


Expand Down
1 change: 1 addition & 0 deletions jest.config.js
Original file line number Diff line number Diff line change
Expand Up @@ -8,4 +8,5 @@ module.exports = {
transformIgnorePatterns: ['node_modules/(?!(@gravity-ui)/)'],
coverageDirectory: './coverage',
collectCoverageFrom: ['src/**/*.{ts,tsx}', '!**/__stories__/**/*', '!**/*/*.stories.{ts,tsx}'],
modulePathIgnorePatterns: ['visual', 'helpersPlaywright'],
};
Loading

0 comments on commit fa924d1

Please sign in to comment.