Files
test-repo/.github/workflows/bundler-friendly.yml
T
renovate[bot] 920d398eea Update actions/setup-node action to v3.4.1 (#13123)
Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com>
2022-07-19 17:00:26 +08:00

63 lines
1.3 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]
defaults:
run:
working-directory: scripts/tools/bundle-test
steps:
- name: Checkout
uses: actions/checkout@v3.0.2
- name: Setup Node.js
uses: actions/setup-node@v3.4.1
- name: Download Artifact
uses: actions/download-artifact@v3
with:
name: dist
path: dist
- name: Install Dependencies
run: yarn install --immutable
- name: Test
run: yarn test