npm(deps): bump downshift from 9.0.10 to 9.0.12 #538
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: E2E and JS tests | |
| on: | |
| pull_request: | |
| push: | |
| branches-ignore: | |
| - develop | |
| - main | |
| # Disable all permissions by default; grant minimal permissions per job | |
| permissions: {} | |
| concurrency: | |
| group: ${{ github.workflow }}-${{ github.ref }} | |
| cancel-in-progress: true | |
| jobs: | |
| build: | |
| name: Build and Lint | |
| runs-on: ubuntu-latest | |
| permissions: | |
| contents: read | |
| steps: | |
| - name: Checkout code | |
| uses: actions/checkout@1af3b93b6815bc44a9784bd300feb67ff0d1eeb3 # v6.0.0 | |
| with: | |
| persist-credentials: false | |
| - name: Set up NodeJS 20 | |
| uses: actions/setup-node@2028fbc5c25fe9cf00d9f06a71cc4710d4507903 # v6.0.0 | |
| with: | |
| node-version: '20' | |
| cache: npm | |
| - name: Install dependencies | |
| run: npm ci | |
| - name: Build assets | |
| run: npm run build | |
| - name: Verify built assets exist | |
| run: | | |
| echo "Checking custom-status assets..." | |
| test -f dist/custom-status.build.js || (echo "Missing: dist/custom-status.build.js" && exit 1) | |
| test -f dist/custom-status.editor.build.css || (echo "Missing: dist/custom-status.editor.build.css" && exit 1) | |
| test -f dist/custom-status.style.build.css || (echo "Missing: dist/custom-status.style.build.css" && exit 1) | |
| echo "Checking calendar assets..." | |
| test -f modules/calendar/lib/dist/calendar.react.build.js || (echo "Missing: modules/calendar/lib/dist/calendar.react.build.js" && exit 1) | |
| test -f modules/calendar/lib/dist/calendar.react.editor.build.css || (echo "Missing: modules/calendar/lib/dist/calendar.react.editor.build.css" && exit 1) | |
| test -f modules/calendar/lib/dist/calendar.react.style.build.css || (echo "Missing: modules/calendar/lib/dist/calendar.react.style.build.css" && exit 1) | |
| echo "All expected assets present!" | |
| - name: Report asset sizes | |
| run: | | |
| echo "### Asset Sizes" >> $GITHUB_STEP_SUMMARY | |
| echo "" >> $GITHUB_STEP_SUMMARY | |
| echo "| File | Size |" >> $GITHUB_STEP_SUMMARY | |
| echo "|------|------|" >> $GITHUB_STEP_SUMMARY | |
| echo "| custom-status.build.js | $(du -h dist/custom-status.build.js | cut -f1) |" >> $GITHUB_STEP_SUMMARY | |
| echo "| calendar.react.build.js | $(du -h modules/calendar/lib/dist/calendar.react.build.js | cut -f1) |" >> $GITHUB_STEP_SUMMARY | |
| - name: Run Lint JS | |
| run: npm run lint-js | |
| - name: Upload build artifacts | |
| uses: actions/upload-artifact@330a01c490aca151604b8cf639adc76d48f6c5d4 # v5.0.0 | |
| with: | |
| name: build-artifacts | |
| path: | | |
| dist/ | |
| modules/calendar/lib/dist/ | |
| retention-days: 1 | |
| test: | |
| name: E2E and Jest tests | |
| runs-on: ubuntu-latest | |
| needs: build | |
| permissions: | |
| contents: read | |
| steps: | |
| - name: Checkout code | |
| uses: actions/checkout@1af3b93b6815bc44a9784bd300feb67ff0d1eeb3 # v6.0.0 | |
| with: | |
| persist-credentials: false | |
| - name: Set up NodeJS 20 | |
| uses: actions/setup-node@2028fbc5c25fe9cf00d9f06a71cc4710d4507903 # v6.0.0 | |
| with: | |
| node-version: '20' | |
| cache: npm | |
| - name: Install dependencies | |
| run: npm ci | |
| - name: Download build artifacts | |
| uses: actions/download-artifact@018cc2cf5baa6db3ef3c5f8a56943fffe632ef53 # v6.0.0 | |
| with: | |
| name: build-artifacts | |
| path: . | |
| - name: Install Playwright | |
| run: npx playwright install --with-deps chromium | |
| - name: Install WordPress with wp-env | |
| run: npm run wp-env start | |
| - name: Run tests | |
| run: npm run test |