https://github.blog/changelog/2023-09-22-github-actions-transitioning-from-node-16-to-node-20/ Fixes: https://github.blog/changelog/2023-09-22-github-actions-transitioning-from-node-16-to-node-20/
42 lines
911 B
YAML
42 lines
911 B
YAML
name: Run Size Limit Check
|
|
|
|
on:
|
|
pull_request:
|
|
branches:
|
|
- develop
|
|
|
|
jobs:
|
|
test:
|
|
runs-on: ubuntu-20.04
|
|
|
|
steps:
|
|
- uses: actions/checkout@v4
|
|
with:
|
|
ref: ${{ github.event.pull_request.head.ref }}
|
|
repository: ${{ github.event.pull_request.head.repo.full_name }}
|
|
|
|
- uses: ruby/setup-ruby@v1
|
|
with:
|
|
bundler-cache: true # runs 'bundle install' and caches installed gems automatically
|
|
|
|
- uses: actions/setup-node@v4
|
|
with:
|
|
node-version: 20
|
|
cache: 'yarn'
|
|
|
|
- name: yarn
|
|
run: yarn install
|
|
|
|
- name: Strip enterprise code
|
|
run: |
|
|
rm -rf enterprise
|
|
rm -rf spec/enterprise
|
|
|
|
- name: Run asset compile
|
|
run: bundle exec rake assets:precompile
|
|
env:
|
|
NODE_OPTIONS: --openssl-legacy-provider
|
|
|
|
- name: Size Check
|
|
run: yarn run size
|