forked from vuejs/core
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge branch 'main' into feature/switch-autoSave
- Loading branch information
Showing
416 changed files
with
19,042 additions
and
9,407 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -3,141 +3,40 @@ on: | |
push: | ||
branches: | ||
- '**' | ||
tags: | ||
- '!**' | ||
pull_request: | ||
branches: | ||
- main | ||
- minor | ||
|
||
permissions: | ||
contents: read # to fetch code (actions/checkout) | ||
|
||
jobs: | ||
unit-test: | ||
runs-on: ubuntu-latest | ||
if: github.event_name == 'push' || github.event.pull_request.head.repo.full_name != github.repository | ||
env: | ||
PUPPETEER_SKIP_DOWNLOAD: 'true' | ||
steps: | ||
- uses: actions/checkout@v4 | ||
|
||
- name: Install pnpm | ||
uses: pnpm/[email protected] | ||
|
||
- name: Install Node.js | ||
uses: actions/setup-node@v4 | ||
with: | ||
node-version-file: '.node-version' | ||
cache: 'pnpm' | ||
|
||
- run: pnpm install | ||
|
||
- name: Run unit tests | ||
run: pnpm run test-unit | ||
|
||
unit-test-windows: | ||
runs-on: windows-latest | ||
if: github.event_name == 'push' || github.event.pull_request.head.repo.full_name != github.repository | ||
env: | ||
PUPPETEER_SKIP_DOWNLOAD: 'true' | ||
steps: | ||
- uses: actions/checkout@v4 | ||
|
||
- name: Install pnpm | ||
uses: pnpm/[email protected] | ||
|
||
- name: Install Node.js | ||
uses: actions/setup-node@v4 | ||
with: | ||
node-version-file: '.node-version' | ||
cache: 'pnpm' | ||
|
||
- run: pnpm install | ||
test: | ||
if: ${{ ! startsWith(github.event.head_commit.message, 'release:') && (github.event_name == 'push' || github.event.pull_request.head.repo.full_name != github.repository) }} | ||
uses: ./.github/workflows/test.yml | ||
|
||
- name: Run compiler unit tests | ||
run: pnpm run test-unit compiler | ||
|
||
- name: Run ssr unit tests | ||
run: pnpm run test-unit server-renderer | ||
|
||
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@v4 | ||
|
||
- name: Setup cache for Chromium binary | ||
uses: actions/cache@v4 | ||
with: | ||
path: ~/.cache/puppeteer | ||
key: chromium-${{ hashFiles('pnpm-lock.yaml') }} | ||
|
||
- name: Install pnpm | ||
uses: pnpm/[email protected] | ||
|
||
- name: Install Node.js | ||
uses: actions/setup-node@v4 | ||
with: | ||
node-version-file: '.node-version' | ||
cache: 'pnpm' | ||
|
||
- run: pnpm install | ||
- run: node node_modules/puppeteer/install.mjs | ||
|
||
- name: Run e2e tests | ||
run: pnpm run test-e2e | ||
|
||
- name: verify treeshaking | ||
run: node scripts/verify-treeshaking.js | ||
|
||
lint-and-test-dts: | ||
continuous-release: | ||
if: github.repository == 'vuejs/core' | ||
runs-on: ubuntu-latest | ||
if: github.event_name == 'push' || github.event.pull_request.head.repo.full_name != github.repository | ||
env: | ||
PUPPETEER_SKIP_DOWNLOAD: 'true' | ||
steps: | ||
- uses: actions/checkout@v4 | ||
- name: Checkout | ||
uses: actions/checkout@v4 | ||
|
||
- name: Install pnpm | ||
uses: pnpm/action-setup@v4.0.0 | ||
uses: pnpm/action-setup@v4 | ||
|
||
- name: Install Node.js | ||
uses: actions/setup-node@v4 | ||
with: | ||
node-version-file: '.node-version' | ||
registry-url: 'https://registry.npmjs.org' | ||
cache: 'pnpm' | ||
|
||
- run: pnpm install | ||
|
||
- name: Run eslint | ||
run: pnpm run lint | ||
|
||
- name: Run prettier | ||
run: pnpm run format-check | ||
|
||
- name: Run type declaration tests | ||
run: pnpm run test-dts | ||
|
||
# benchmarks: | ||
# runs-on: ubuntu-latest | ||
# if: github.event_name == 'push' || github.event.pull_request.head.repo.full_name != github.repository | ||
# env: | ||
# PUPPETEER_SKIP_DOWNLOAD: 'true' | ||
# steps: | ||
# - uses: actions/checkout@v4 | ||
|
||
# - name: Install pnpm | ||
# uses: pnpm/[email protected] | ||
|
||
# - name: Install Node.js | ||
# uses: actions/setup-node@v4 | ||
# with: | ||
# node-version-file: '.node-version' | ||
# cache: 'pnpm' | ||
- name: Install deps | ||
run: pnpm install | ||
|
||
# - run: pnpm install | ||
- name: Build | ||
run: pnpm build --withTypes | ||
|
||
# - name: Run benchmarks | ||
# uses: CodSpeedHQ/action@v2 | ||
# with: | ||
# run: pnpm vitest bench --run | ||
# token: ${{ secrets.CODSPEED_TOKEN }} | ||
- name: Release | ||
run: pnpx pkg-pr-new publish --compact --pnpm './packages/*' |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,21 @@ | ||
name: Auto close issues with "can't reproduce" label | ||
|
||
on: | ||
schedule: | ||
- cron: '0 0 * * *' | ||
|
||
permissions: | ||
issues: write | ||
|
||
jobs: | ||
close-issues: | ||
if: github.repository == 'vuejs/core' | ||
runs-on: ubuntu-latest | ||
steps: | ||
- name: can't reproduce | ||
uses: actions-cool/issues-helper@v3 | ||
with: | ||
actions: 'close-issues' | ||
token: ${{ secrets.GITHUB_TOKEN }} | ||
labels: "can't reproduce" | ||
inactive-day: 3 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file was deleted.
Oops, something went wrong.
Oops, something went wrong.