fix(list): include groups in filtering #18006
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 | |
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" |