[pull] main from prettier:main #388
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: Bundler_Friendly | |
on: | |
schedule: | |
# “At 00:00 on Sunday.” https://crontab.guru/#0_0_*_*_SUN | |
- cron: "0 0 * * SUN" | |
pull_request: | |
paths: | |
- "scripts/tools/bundle-test/**" | |
# This workflow file | |
- ".github/workflows/bundler-friendly.yml" | |
permissions: | |
contents: read | |
concurrency: | |
group: ${{ github.workflow }}-${{ github.ref }} | |
cancel-in-progress: true | |
jobs: | |
build: | |
if: github.event_name != 'schedule' || github.repository == 'prettier/prettier' | |
name: Build | |
uses: ./.github/workflows/_build.yml | |
webpack: | |
if: github.event_name != 'schedule' || github.repository == 'prettier/prettier' | |
name: Bundle Prettier with webpack | |
runs-on: ubuntu-latest | |
needs: [build] | |
steps: | |
- name: Checkout | |
uses: actions/checkout@v4 | |
- name: Setup Node.js | |
uses: actions/setup-node@v4 | |
with: | |
cache: "yarn" | |
- name: Install Dependencies | |
run: yarn install --immutable | |
- name: Download Artifact | |
uses: actions/download-artifact@v4 | |
with: | |
name: dist | |
path: dist | |
- name: Install Dependencies | |
run: yarn install --immutable | |
working-directory: scripts/tools/bundle-test | |
- name: Test | |
run: yarn test | |
working-directory: scripts/tools/bundle-test |