Files
test-repo/.github/workflows/bundler-friendly.yml
T
renovate[bot] 66cb3ec182 Update actions/checkout action to v3.1.0 (#13597)
Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com>
2022-10-09 14:38:29 +08:00

67 lines
1.4 KiB
YAML
Raw Blame History

This file contains invisible Unicode characters
This file contains invisible Unicode characters that are indistinguishable to humans but may be processed differently by a computer. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.
name: Bundler_Friendly
on:
schedule:
# “At 00:00 on Sunday.” https://crontab.guru/#0%C2%A00%C2%A0*%C2%A0*%C2%A00
- cron: "0 0 * * 0"
pull_request:
paths:
- "scripts/tools/bundle-test/**"
# This workflow file
- ".github/workflows/bundler-friendly.yml"
jobs:
build:
name: Build
runs-on: ubuntu-latest
steps:
- name: Checkout
uses: actions/checkout@v3
- name: Setup Node.js
uses: actions/setup-node@v3
with:
cache: "yarn"
- name: Install Dependencies
run: yarn install --immutable
- name: Build Package
run: yarn build
- name: Upload Artifact
uses: actions/upload-artifact@v3
with:
name: dist
path: dist
webpack:
name: Bundle Prettier with webpack
runs-on: ubuntu-latest
needs: [build]
steps:
- name: Checkout
uses: actions/checkout@v3.1.0
- name: Setup Node.js
uses: actions/setup-node@v3.5.0
with:
cache: "yarn"
- name: Install Dependencies
run: yarn install --immutable
- name: Download Artifact
uses: actions/download-artifact@v3
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