From ebeededbad792314449f8e0d47f66c4e187e7987 Mon Sep 17 00:00:00 2001 From: Thomas Lefebvre Date: Mon, 8 May 2023 10:20:27 -0400 Subject: [PATCH] Merge CI jobs --- .github/workflows/main.yml | 6 ++++++ .github/workflows/size.yml | 15 --------------- 2 files changed, 6 insertions(+), 15 deletions(-) delete mode 100644 .github/workflows/size.yml diff --git a/.github/workflows/main.yml b/.github/workflows/main.yml index 2518520..e74c6fa 100644 --- a/.github/workflows/main.yml +++ b/.github/workflows/main.yml @@ -36,3 +36,9 @@ jobs: - name: Build run: yarn build + + - name: Check size + if: ${{ github.event_name == 'pull_request' && github.base_ref == 'master'}} + uses: andresz1/size-limit-action@v1 + with: + github_token: ${{ secrets.GITHUB_TOKEN }} diff --git a/.github/workflows/size.yml b/.github/workflows/size.yml deleted file mode 100644 index f2027db..0000000 --- a/.github/workflows/size.yml +++ /dev/null @@ -1,15 +0,0 @@ -name: size -on: - pull_request: - branches: - - master -jobs: - size: - 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 }}