refactor(charts): migrate Cypress tests to Playwright Component Tests #25992
Workflow file for this run
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
| # This is a basic workflow to help you get started with Actions | |
| name: CI | |
| concurrency: | |
| group: ci-${{ github.ref }} | |
| cancel-in-progress: true | |
| on: | |
| push: | |
| branches: | |
| - 'main' | |
| - 'next' | |
| - '+([0-9])?(.{+([0-9]),x}).x' | |
| pull_request: | |
| merge_group: | |
| jobs: | |
| reuse-compliance: | |
| runs-on: ubuntu-latest | |
| permissions: | |
| contents: read | |
| steps: | |
| - uses: actions/checkout@de0fac2e4500dabe0009e67214ff5f5447ce83dd # v6.0.2 | |
| - name: REUSE Compliance Check | |
| uses: fsfe/reuse-action@676e2d560c9a403aa252096d99fcab3e1132b0f5 # v6.0.0 | |
| check-bundle-size: | |
| if: ${{ github.base_ref == 'main' }} # only for PRs targeting main branch | |
| runs-on: ubuntu-latest | |
| permissions: | |
| contents: read | |
| pull-requests: write # compressed-size-action posts PR comments | |
| steps: | |
| - uses: actions/checkout@de0fac2e4500dabe0009e67214ff5f5447ce83dd # v6.0.2 | |
| - uses: preactjs/compressed-size-action@66325aad6443cb7cf89c4bfcd414aea2367cda94 # 2.9.1 | |
| with: | |
| repo-token: '${{ secrets.GITHUB_TOKEN }}' | |
| pattern: 'packages/**/dist/**/*.{js,css}' | |
| compression: 'gzip' | |
| clean-script: 'clean:remove-modules' | |
| build: | |
| permissions: | |
| contents: read | |
| uses: './.github/workflows/build.yml' | |
| test: | |
| needs: ['build'] | |
| permissions: | |
| contents: read | |
| pull-requests: write # coveralls posts coverage status | |
| checks: write # coveralls creates check runs | |
| uses: './.github/workflows/test.yml' | |
| lint: | |
| runs-on: ubuntu-latest | |
| permissions: | |
| contents: read | |
| env: | |
| CYPRESS_INSTALL_BINARY: 0 | |
| steps: | |
| - uses: actions/checkout@de0fac2e4500dabe0009e67214ff5f5447ce83dd # v6.0.2 | |
| - uses: actions/setup-node@48b55a011bda9f5d6aeb4c2d9c7362e8dae4041e # v6.4.0 | |
| with: | |
| node-version-file: '.nvmrc' | |
| cache: 'yarn' | |
| - name: install dependencies | |
| run: yarn install --immutable | |
| - name: run eslint | |
| run: yarn lint | |
| env: | |
| NODE_OPTIONS: '--max-old-space-size=4096' | |
| deploy-next-docs: | |
| needs: ['build'] | |
| runs-on: ubuntu-latest | |
| permissions: | |
| contents: write # pushes to gh-pages branch | |
| env: | |
| CYPRESS_INSTALL_BINARY: 0 | |
| steps: | |
| - uses: actions/checkout@de0fac2e4500dabe0009e67214ff5f5447ce83dd # v6.0.2 | |
| - name: Setup Node.js environment | |
| uses: actions/setup-node@48b55a011bda9f5d6aeb4c2d9c7362e8dae4041e # v6.4.0 | |
| with: | |
| node-version-file: '.nvmrc' | |
| cache: 'yarn' | |
| - name: Install and Build | |
| run: | | |
| yarn install --immutable | |
| yarn build:sb-with-search | |
| env: | |
| NODE_OPTIONS: '--max-old-space-size=4096' | |
| - name: Deploy 🚀 | |
| uses: JamesIves/github-pages-deploy-action@d92aa235d04922e8f08b40ce78cc5442fcfbfa2f # v4.8.0 | |
| if: ${{ github.ref == 'refs/heads/main' }} | |
| with: | |
| branch: gh-pages # The branch the action should deploy to. | |
| folder: .out # The folder the action should deploy. | |
| target-folder: nightly | |
| clean: true |