PR Build Diff (with BundleMon) #11
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: "PR Build Diff (with BundleMon)" | |
# on: | |
# pull_request: | |
# # Set base branch | |
# branches: [ "master" ] | |
on: | |
push: | |
branches: ["master"] | |
pull_request: | |
branches: [ "master" ] | |
workflow_dispatch: | |
jobs: | |
build-size-check: | |
runs-on: security-tests-runner | |
steps: | |
# Check out base (target) branch at the commit where the PR branched off | |
- name: Check out base branch | |
uses: actions/checkout@v4 | |
# Set up Node.js | |
- name: Set up Node.js | |
uses: actions/setup-node@v4 | |
with: | |
node-version-file: '.nvmrc' | |
cache: 'yarn' | |
# Install and build | |
- name: Install and build | |
run: | | |
yarn install | |
yarn build | |
- name: BundleMon | |
uses: lironer/bundlemon-action@v1 | |