Skip to content

Commit

Permalink
chore(ci): don't run size-limit check on master
Browse files Browse the repository at this point in the history
  • Loading branch information
rchl committed Apr 7, 2023
1 parent 8ae975e commit 5d9e00c
Show file tree
Hide file tree
Showing 2 changed files with 31 additions and 24 deletions.
24 changes: 0 additions & 24 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -10,33 +10,9 @@ on:
- main

jobs:
size:
name: Size Check
runs-on: ubuntu-latest
env:
CI: true
strategy:
fail-fast: false
matrix:
node-version: [16.x]
steps:
- uses: actions/checkout@v3
- name: Setup node
uses: actions/setup-node@v3
with:
node-version: ${{ matrix.node-version }}
cache: yarn
- name: Check bundle sizes
uses: andresz1/size-limit-action@v1
with:
github_token: ${{ secrets.GITHUB_TOKEN }}
build_script: size

build:
name: Use Node.js ${{ matrix.node-version }}
runs-on: ubuntu-latest
needs:
- size
env:
CI: true
strategy:
Expand Down
31 changes: 31 additions & 0 deletions .github/workflows/size-limit.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,31 @@
---
name: size

on:
pull_request:
branches:
- main

jobs:
size:
name: Size Check
runs-on: ubuntu-latest
env:
CI: true
CI_JOB_NUMBER: 1
strategy:
fail-fast: false
matrix:
node-version: [16.x]
steps:
- uses: actions/checkout@v3
- name: Setup node
uses: actions/setup-node@v3
with:
node-version: ${{ matrix.node-version }}
cache: yarn
- name: Check bundle sizes
uses: andresz1/size-limit-action@v1
with:
github_token: ${{ secrets.GITHUB_TOKEN }}
build_script: size

0 comments on commit 5d9e00c

Please sign in to comment.