diff --git a/.github/workflows/size.yml b/.github/workflows/size.yml new file mode 100644 index 0000000..c71853b --- /dev/null +++ b/.github/workflows/size.yml @@ -0,0 +1,39 @@ +name: Size + +on: + pull_request: + branches: + - master +permissions: + pull-requests: write +jobs: + size-plaintext: + runs-on: ubuntu-latest + env: + CI_JOB_NUMBER: 1 + steps: + - uses: actions/checkout@v1 + - uses: andresz1/size-limit-action@v1 + with: + github_token: ${{ secrets.GITHUB_TOKEN }} + directory: demos/playground + size-richtext: + runs-on: ubuntu-latest + env: + CI_JOB_NUMBER: 1 + steps: + - uses: actions/checkout@v1 + - uses: andresz1/size-limit-action@v1 + with: + github_token: ${{ secrets.GITHUB_TOKEN }} + directory: demos/richtext-editor + size-playground: + runs-on: ubuntu-latest + env: + CI_JOB_NUMBER: 1 + steps: + - uses: actions/checkout@v1 + - uses: andresz1/size-limit-action@v1 + with: + github_token: ${{ secrets.GITHUB_TOKEN }} + directory: demos/playground