2022-05-26 11:49:29 -05:00
|
|
|
name: Scripts
|
|
|
|
|
|
|
|
on:
|
|
|
|
pull_request:
|
|
|
|
branches:
|
|
|
|
- 'main'
|
2022-07-11 15:11:01 -05:00
|
|
|
paths:
|
|
|
|
- 'packages/astro/src/runtime/client/**/*'
|
2022-05-26 11:49:29 -05:00
|
|
|
|
|
|
|
# Automatically cancel in-progress actions on the same branch
|
|
|
|
concurrency:
|
|
|
|
group: ${{ github.workflow }}-${{ github.event_name == 'pull_request_target' && github.head_ref || github.ref }}
|
|
|
|
cancel-in-progress: true
|
|
|
|
|
|
|
|
defaults:
|
|
|
|
run:
|
|
|
|
shell: bash
|
|
|
|
|
|
|
|
jobs:
|
|
|
|
bundle:
|
|
|
|
name: Bundle Size
|
|
|
|
runs-on: ubuntu-latest
|
|
|
|
steps:
|
|
|
|
- name: Checkout Repo
|
|
|
|
uses: actions/checkout@v2
|
|
|
|
|
|
|
|
- name: Checkout Main into tmp
|
|
|
|
uses: actions/checkout@v2
|
|
|
|
with:
|
|
|
|
ref: main
|
|
|
|
path: main
|
|
|
|
|
2022-10-28 11:40:03 -05:00
|
|
|
- name: Install Tools & Dependencies
|
|
|
|
uses: ./.github/actions/install
|
2022-05-26 11:49:29 -05:00
|
|
|
|
|
|
|
- name: Check Bundle Size
|
|
|
|
uses: actions/github-script@v6
|
|
|
|
with:
|
|
|
|
script: |
|
|
|
|
const { default: script } = await import('${{ github.workspace }}/.github/scripts/bundle-size.mjs')
|
|
|
|
await script({ github, context })
|