feat(addon-mobile): SheetDialog
add new dialog
#5647
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: ⚙️ E2E tests | |
on: | |
pull_request: | |
env: | |
NX_CLOUD_ACCESS_TOKEN: ${{ secrets.NX_CLOUD_ACCESS_TOKEN }} | |
jobs: | |
build-demo: | |
if: ${{ !contains(github.head_ref , 'release/') }} | |
name: Build demo | |
runs-on: ubuntu-latest | |
steps: | |
- uses: actions/[email protected] | |
with: | |
fetch-depth: 10 | |
- name: Setup global variables | |
uses: ./.github/actions/variables | |
- name: Try rebase locally for check affected e2e | |
uses: ./.github/actions/rebase | |
continue-on-error: true | |
- name: Setup Node.js and Cache | |
uses: ./.github/actions/nodejs | |
- name: Building demo-app of git-branch without cache | |
run: npx nx build demo -c next --output-path ${{ env.DIST }} | |
- name: Upload cache / ${{ env.CACHE_DIST_KEY }} | |
uses: actions/cache/[email protected] | |
with: | |
path: dist/demo | |
key: ${{ env.CACHE_DIST_KEY }} | |
cypress: | |
if: ${{ !contains(github.head_ref , 'release/') }} | |
needs: [build-demo] | |
runs-on: ubuntu-latest | |
services: | |
sorry-cypress-director: | |
image: agoldis/sorry-cypress-director:2.5.8 | |
ports: | |
- 1234:1234 | |
strategy: | |
fail-fast: false | |
matrix: | |
project: | |
[ | |
addon-doc, | |
addon-charts, | |
addon-commerce, | |
addon-mobile, | |
addon-preview, | |
addon-table, | |
addon-tablebars, | |
icons, | |
core, | |
deep, | |
demo, | |
kit, | |
] | |
name: ${{ matrix.project }} | |
steps: | |
- uses: actions/[email protected] | |
- name: Setup global variables | |
uses: ./.github/actions/variables | |
- name: Setup Node.js and Cache | |
uses: ./.github/actions/nodejs | |
- name: Download cache / ${{ env.CACHE_DIST_KEY }} | |
uses: actions/cache/[email protected] | |
with: | |
path: dist/demo | |
key: ${{ env.CACHE_DIST_KEY }} | |
- name: Serve ${{ env.DIST }} in background | |
run: npx nx serve-compiled demo --path ${{ env.DIST }} --port ${{ env.NG_SERVER_PORT }} | |
- name: Run screenshot tests on ${{ env.DIST }} | |
run: npx nx e2e demo-integrations --key localhost --folder ${{ matrix.project }} | |
- name: Clean up resources | |
run: npx kill-port --port ${{ env.NG_SERVER_PORT }} | |
- name: Download ${{ env.DIST_NEXT }} for serve locally | |
run: | | |
git clone \ | |
--depth 1 \ | |
--branch snapshots/demo/next/${{ github.base_ref }} \ | |
https://github.com/Tinkoff/taiga-ui.git ${{ env.DIST_NEXT }} | |
- name: Serve ${{ env.DIST_NEXT }} in background | |
run: npx nx serve-compiled demo --path ${{ env.DIST_NEXT }} --port ${{ env.NG_SERVER_PORT }} | |
- name: Run screenshot tests on ${{ env.DIST_NEXT }} | |
continue-on-error: true | |
run: npx nx e2e demo-integrations --key next --folder ${{ matrix.project }} | |
- name: Clean up resources | |
run: npx kill-port --port ${{ env.NG_SERVER_PORT }} | |
- name: Upload artifacts / ${{ env.SNAPSHOTS_ARTIFACTS_KEY }} | |
uses: actions/[email protected] | |
with: | |
path: ${{ env.SNAPSHOTS_PATH }}/**/*.diff.png | |
name: ${{ env.SNAPSHOTS_ARTIFACTS_KEY }} | |
if-no-files-found: ignore | |
retention-days: 1 | |
result: | |
if: ${{ !contains(github.head_ref , 'release/') }} | |
name: result | |
needs: [cypress] | |
runs-on: ubuntu-latest | |
steps: | |
- uses: actions/[email protected] | |
- name: Setup global variables | |
uses: ./.github/actions/variables | |
- name: Download artifacts / ${{ env.SNAPSHOTS_ARTIFACTS_KEY }} | |
continue-on-error: true | |
uses: actions/[email protected] | |
with: | |
name: ${{ env.SNAPSHOTS_ARTIFACTS_KEY }} | |
path: ${{ env.SNAPSHOTS_PATH }} | |
- name: Upload cache / ${{ env.SNAPSHOTS_CACHE_KEY }} | |
uses: actions/cache/[email protected] | |
with: | |
path: ${{ env.SNAPSHOTS_PATH }} | |
key: ${{ env.SNAPSHOTS_CACHE_KEY }} | |
- name: Debug output | |
continue-on-error: true | |
run: tree ${{ env.SNAPSHOTS_PATH }} | |
concurrency: | |
group: e2e-${{ github.workflow }}-${{ github.ref }} | |
cancel-in-progress: true |