Skip to content

feat(list)!: add mode property to choose between flat and nested lists #18245

feat(list)!: add mode property to choose between flat and nested lists

feat(list)!: add mode property to choose between flat and nested lists #18245

Workflow file for this run

name: E2E
on:
workflow_dispatch:
pull_request:
branches: [main, rc, dev]
jobs:
e2e:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
with:
fetch-depth: 0
- name: Check diff for testable changes
id: diff-check
run: |
testable_changes="$(
git diff --name-only HEAD "$(
git merge-base HEAD origin/${{ github.base_ref }}
)" -- . ':!*.md*' ':!**/calcite-ui-icons/**'
)"
echo "changed files: $testable_changes"
# skip if there are only md changes
if [ -z "$testable_changes" ]; then
echo "SKIP=true" >> "$GITHUB_OUTPUT"
else
echo "SKIP=false" >> "$GITHUB_OUTPUT"
fi
- if: steps.diff-check.outputs.SKIP == 'false'
uses: actions/setup-node@v4
with:
node-version-file: package.json
- if: steps.diff-check.outputs.SKIP == 'false'
name: Run tests for testable changes
run: npm install && npm run build && npm run test
- if: steps.diff-check.outputs.SKIP == 'true'
name: Skip visual snapshots for non-testable changes
env:
GH_TOKEN: ${{ secrets.ADMIN_TOKEN }}
PR_NUMBER: ${{ github.event.pull_request.number }}
run: |
gh pr edit "$PR_NUMBER" --add-label "skip visual snapshots"