Bump fast-uri from 3.1.4 to 3.1.5 (#14590) #20030
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: Editor Integration Tests | |
| on: | |
| push: | |
| # Only run if editor-related files changed. | |
| paths: | |
| - 'babel.config.cjs' | |
| - 'karma-story-editor.config.cjs' | |
| - 'webpack.config.cjs' | |
| - 'webpack.config.test.cjs' | |
| - 'packages/**/*.js' | |
| - 'packages/**/*.cjs' | |
| - 'packages/**/*.ts' | |
| - 'packages/**/*.tsx' | |
| - '**/package.json' | |
| - 'package-lock.json' | |
| - '__static__/**' | |
| - '.github/workflows/tests-karma-editor.yml' | |
| branches: | |
| - main | |
| - release/* | |
| pull_request: | |
| # Only run if editor-related files changed. | |
| paths: | |
| - 'babel.config.cjs' | |
| - 'karma-story-editor.config.cjs' | |
| - 'webpack.config.cjs' | |
| - 'webpack.config.test.cjs' | |
| - 'packages/**/*.js' | |
| - 'packages/**/*.cjs' | |
| - 'packages/**/*.ts' | |
| - 'packages/**/*.tsx' | |
| - '**/package.json' | |
| - 'package-lock.json' | |
| - '__static__/**' | |
| - '.github/workflows/tests-karma-editor.yml' | |
| types: | |
| - opened | |
| - reopened | |
| - synchronize | |
| - ready_for_review | |
| permissions: | |
| contents: read | |
| # Cancels all previous workflow runs for pull requests that have not completed. | |
| concurrency: | |
| # The concurrency group contains the workflow name and the (target) branch name. | |
| group: ${{ github.workflow }}-${{ github.head_ref || github.ref }} | |
| cancel-in-progress: true | |
| jobs: | |
| karma: | |
| name: Karma (${{ matrix.shard }}) | |
| runs-on: ubuntu-latest | |
| timeout-minutes: 60 | |
| strategy: | |
| fail-fast: false | |
| matrix: | |
| # We want to split up the tests into 20 parts running in parallel. | |
| shard: | |
| [ | |
| '1/20', | |
| '2/20', | |
| '3/20', | |
| '4/20', | |
| '5/20', | |
| '6/20', | |
| '7/20', | |
| '8/20', | |
| '9/20', | |
| '10/20', | |
| '11/20', | |
| '12/20', | |
| '13/20', | |
| '14/20', | |
| '15/20', | |
| '16/20', | |
| '17/20', | |
| '18/20', | |
| '19/20', | |
| '20/20', | |
| ] | |
| steps: | |
| - name: Harden Runner | |
| uses: step-security/harden-runner@bf7454d06d71f1098171f2acdf0cd4708d7b5920 | |
| with: | |
| disable-file-monitoring: true | |
| egress-policy: block | |
| allowed-endpoints: > | |
| api.github.com:443 | |
| codecov.io:443 | |
| fonts.googleapis.com:443 | |
| fonts.gstatic.com:443 | |
| github.com:443 | |
| googlechromelabs.github.io:443 | |
| registry.npmjs.org:443 | |
| storage.googleapis.com:443 | |
| uploader.codecov.io:443 | |
| wp.stories.google:443 | |
| media3p.googleapis.com:443 | |
| stories.local:80 | |
| 54.185.253.63:443 | |
| 34.104.35.123:443 | |
| - name: Checkout | |
| uses: actions/checkout@9c091bb21b7c1c1d1991bb908d89e4e9dddfe3e0 | |
| - name: Setup Node | |
| uses: actions/setup-node@820762786026740c76f36085b0efc47a31fe5020 | |
| with: | |
| node-version-file: '.nvmrc' | |
| cache: npm | |
| - name: Cache Puppeteer browsers | |
| uses: actions/cache@55cc8345863c7cc4c66a329aec7e433d2d1c52a9 | |
| with: | |
| path: ~/.cache/puppeteer | |
| key: ${{ runner.os }}-puppeteer-${{ hashFiles('package-lock.json') }} | |
| restore-keys: | | |
| ${{ runner.os }}-puppeteer- | |
| - name: Install dependencies | |
| run: npm ci | |
| env: | |
| PUPPETEER_SKIP_DOWNLOAD: true | |
| - name: Install Chrome | |
| run: npx puppeteer browsers install chrome | |
| # See https://issues.chromium.org/issues/373753919 | |
| # and https://chromium.googlesource.com/chromium/src/+/main/docs/security/apparmor-userns-restrictions.md | |
| - name: Disable AppArmor | |
| run: echo 0 | sudo tee /proc/sys/kernel/apparmor_restrict_unprivileged_userns | |
| # FIXME: https://github.com/googleforcreators/web-stories-wp/issues/4364 | |
| - name: Increase max number of file watchers | |
| run: echo fs.inotify.max_user_watches=524288 | sudo tee -a /etc/sysctl.conf && sudo sysctl -p | |
| - name: Get Chromium executable path | |
| id: chromium_path | |
| run: | | |
| CHROMIUM=$(node -p "const puppeteer = require('puppeteer'); puppeteer.executablePath();") | |
| echo "chromium_path=${CHROMIUM}" >> $GITHUB_ENV | |
| - name: Run integration tests | |
| run: | | |
| npm run test:karma:story-editor -- --headless --viewport=1600:1000 --coverage --shard=$SHARD || \ | |
| npm run test:karma:story-editor:retry-failed -- --headless --viewport=1600:1000 --shard=$SHARD | |
| env: | |
| DISABLE_ERROR_BOUNDARIES: true | |
| SHARD: ${{ matrix.shard }} | |
| - name: Upload code coverage report | |
| uses: codecov/codecov-action@fb8b3582c8e4def4969c97caa2f19720cb33a72f | |
| with: | |
| files: build/logs/karma-coverage/story-editor/lcov.info | |
| flags: karmatests | |
| token: ${{ secrets.CODECOV_TOKEN }} |