Files
test-repo/.github/workflows/bundler-friendly.yml
T
renovate[bot] 5dc0e5c3ab chore(deps): update actions/setup-node action to v6 (#18074)
Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com>
2025-10-15 02:29:44 +08:00

56 lines
1.4 KiB
YAML

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@08c6903cd8c0fde910a37f88322edcfb5dd907a8 # v5.0.0
- name: Setup Node.js
uses: actions/setup-node@2028fbc5c25fe9cf00d9f06a71cc4710d4507903 # v6.0.0
with:
cache: "yarn"
- name: Install Dependencies
run: yarn install --immutable
- name: Download Artifact
uses: actions/download-artifact@634f93cb2916e3fdff6788551b99b062d0335ce0 # v5.0.0
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