diff --git a/.github/workflows/main.yml b/.github/workflows/main.yml index 7a61c34..1a33e3d 100644 --- a/.github/workflows/main.yml +++ b/.github/workflows/main.yml @@ -1,5 +1,14 @@ name: ci -on: [push] + +on: + push: + branches: [main] + pull_request: + types: + - opened + - synchronize + workflow_dispatch: + jobs: build: name: Build, lint, and test on Node ${{ matrix.node }} and ${{ matrix.os }} @@ -38,3 +47,8 @@ jobs: uses: paambaati/codeclimate-action@v3.0.0 env: CC_TEST_REPORTER_ID: '${{ secrets.CC_TEST_REPORTER_ID }}' + + - uses: preactjs/compressed-size-action@v2 + with: + repo-token: '${{ secrets.GITHUB_TOKEN }}' + build-script: 'build' diff --git a/.github/workflows/size.yml b/.github/workflows/size.yml deleted file mode 100644 index 6021cda..0000000 --- a/.github/workflows/size.yml +++ /dev/null @@ -1,12 +0,0 @@ -name: size -on: [pull_request] -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 }}