jobs:
unit-test:
runs-on: ubuntu-latest
+ if: github.event_name == 'push' || github.event.pull_request.head.repo.full_name != github.repository
steps:
- uses: actions/checkout@v3
e2e-test:
runs-on: ubuntu-latest
+ if: github.event_name == 'push' || github.event.pull_request.head.repo.full_name != github.repository
steps:
- uses: actions/checkout@v3
lint-and-test-dts:
runs-on: ubuntu-latest
+ if: github.event_name == 'push' || github.event.pull_request.head.repo.full_name != github.repository
steps:
- uses: actions/checkout@v3
size:
runs-on: ubuntu-latest
+ if: github.event_name == 'push' || github.event.pull_request.head.repo.full_name != github.repository
env:
CI_JOB_NUMBER: 1
steps:
- run: PUPPETEER_SKIP_DOWNLOAD=1 pnpm install
- run: pnpm run size
-
- # - name: Check build size
- # uses: posva/size-check-action@v1.1.2
- # with:
- # github_token: ${{ secrets.GITHUB_TOKEN }}
- # build_script: size
- # files: packages/vue/dist/vue.global.prod.js packages/runtime-dom/dist/runtime-dom.global.prod.js packages/size-check/dist/index.js