Share popover total count #11763
This file contains hidden or 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: Web code quality checks | |
| on: | |
| pull_request: | |
| paths: | |
| - ".github/workflows/web-test.yml" | |
| - "web-admin/**" | |
| - "web-common/**" | |
| - "web-local/**" | |
| jobs: | |
| build: | |
| runs-on: ubuntu-latest | |
| steps: | |
| - name: Checkout code | |
| uses: actions/checkout@v4 | |
| - name: Filter modified codepaths | |
| uses: dorny/paths-filter@v3 | |
| id: filter | |
| with: | |
| filters: | | |
| admin: | |
| - ".github/workflows/web-test.yml" | |
| - "web-admin/**" | |
| local: | |
| - ".github/workflows/web-test.yml" | |
| - "web-local/**" | |
| common: | |
| - ".github/workflows/web-test.yml" | |
| - "web-common/**" | |
| - name: Set up NodeJS | |
| uses: actions/setup-node@v4 | |
| with: | |
| node-version-file: '.nvmrc' | |
| - name: NPM Install | |
| run: npm install | |
| # https://typicode.github.io/husky/how-to.html#ci-server-and-docker | |
| env: | |
| HUSKY: 0 | |
| - name: lint and type checks for web common | |
| if: steps.filter.outputs.common == 'true' | |
| run: |- | |
| cd web-common | |
| npx svelte-kit sync | |
| cd .. | |
| npx eslint web-common --quiet | |
| npx svelte-check --workspace web-common --no-tsconfig --ignore "src/features/dashboards/time-series/MetricsTimeSeriesCharts.svelte,src/features/dashboards/time-series/MeasureChart.svelte,src/features/dashboards/time-controls/TimeControls.svelte,src/components/data-graphic/elements/GraphicContext.svelte,src/components/data-graphic/guides/Axis.svelte,src/components/data-graphic/guides/DynamicallyPlacedLabel.svelte,src/components/data-graphic/guides/Grid.svelte,src/components/data-graphic/compositions/timestamp-profile/TimestampDetail.svelte,src/components/data-graphic/marks/Area.svelte,src/components/data-graphic/marks/ChunkedLine.svelte,src/components/data-graphic/marks/HistogramPrimitive.svelte,src/components/data-graphic/marks/Line.svelte,src/components/data-graphic/marks/MultiMetricMouseoverLabel.svelte,src/features/column-profile/column-types/details/SummaryNumberPlot.svelte,src/stories/Tooltip.stories.svelte,src/lib/number-formatting/__stories__/NumberFormatting.stories.svelte" | |
| - name: lint and type checks for web local | |
| if: steps.filter.outputs.local == 'true' | |
| run: |- | |
| cd web-local | |
| npx svelte-kit sync | |
| cd .. | |
| npx eslint web-local --quiet | |
| npm run check -w web-local | |
| - name: lint and type checks for web admin | |
| if: steps.filter.outputs.admin == 'true' | |
| run: |- | |
| cd web-admin | |
| npx svelte-kit sync | |
| cd .. | |
| npx eslint web-admin --quiet | |
| npx svelte-check --workspace web-admin --no-tsconfig | |
| - name: type check non-svelte files (with temporary whitelist) | |
| run: |- | |
| bash ./scripts/tsc-with-whitelist.sh |