mirror of https://github.com/vuejs/core.git
ci: avoid duplicated ci runs on self-repo pull requests
This commit is contained in:
parent
d77557c403
commit
ea5bf1235d
|
@ -13,6 +13,7 @@ permissions:
|
||||||
jobs:
|
jobs:
|
||||||
unit-test:
|
unit-test:
|
||||||
runs-on: ubuntu-latest
|
runs-on: ubuntu-latest
|
||||||
|
if: github.event_name == 'push' || github.event.pull_request.head.repo.full_name != github.repository
|
||||||
steps:
|
steps:
|
||||||
- uses: actions/checkout@v3
|
- uses: actions/checkout@v3
|
||||||
|
|
||||||
|
@ -32,6 +33,7 @@ jobs:
|
||||||
|
|
||||||
e2e-test:
|
e2e-test:
|
||||||
runs-on: ubuntu-latest
|
runs-on: ubuntu-latest
|
||||||
|
if: github.event_name == 'push' || github.event.pull_request.head.repo.full_name != github.repository
|
||||||
steps:
|
steps:
|
||||||
- uses: actions/checkout@v3
|
- uses: actions/checkout@v3
|
||||||
|
|
||||||
|
@ -57,6 +59,7 @@ jobs:
|
||||||
|
|
||||||
lint-and-test-dts:
|
lint-and-test-dts:
|
||||||
runs-on: ubuntu-latest
|
runs-on: ubuntu-latest
|
||||||
|
if: github.event_name == 'push' || github.event.pull_request.head.repo.full_name != github.repository
|
||||||
steps:
|
steps:
|
||||||
- uses: actions/checkout@v3
|
- uses: actions/checkout@v3
|
||||||
|
|
||||||
|
@ -82,6 +85,7 @@ jobs:
|
||||||
|
|
||||||
size:
|
size:
|
||||||
runs-on: ubuntu-latest
|
runs-on: ubuntu-latest
|
||||||
|
if: github.event_name == 'push' || github.event.pull_request.head.repo.full_name != github.repository
|
||||||
env:
|
env:
|
||||||
CI_JOB_NUMBER: 1
|
CI_JOB_NUMBER: 1
|
||||||
steps:
|
steps:
|
||||||
|
@ -98,10 +102,3 @@ jobs:
|
||||||
|
|
||||||
- run: PUPPETEER_SKIP_DOWNLOAD=1 pnpm install
|
- run: PUPPETEER_SKIP_DOWNLOAD=1 pnpm install
|
||||||
- run: pnpm run size
|
- 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
|
|
||||||
|
|
Loading…
Reference in New Issue