-
-
Notifications
You must be signed in to change notification settings - Fork 17.6k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #6560 from element-plus/dev
- Loading branch information
Showing
37 changed files
with
494 additions
and
163 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,80 @@ | ||
name: Build Product 👮♂️ | ||
|
||
on: pull_request | ||
|
||
jobs: | ||
check: | ||
name: Build Product Check | ||
runs-on: ubuntu-latest | ||
|
||
steps: | ||
- uses: actions/checkout@v3 | ||
with: | ||
fetch-depth: 0 | ||
persist-credentials: false | ||
|
||
- name: Add dev branch | ||
run: git branch dev origin/dev | ||
|
||
- name: Setup pnpm | ||
uses: pnpm/action-setup@v2 | ||
with: | ||
version: latest | ||
|
||
- name: Setup node | ||
uses: actions/setup-node@v3 | ||
with: | ||
node-version: '16' | ||
|
||
- name: Cache ~/.pnpm-store | ||
uses: actions/cache@v2 | ||
env: | ||
cache-name: cache-pnpm-store | ||
with: | ||
path: ~/.pnpm-store | ||
key: ${{ runner.os }}-${{ matrix.node-version }}-test-${{ env.cache-name }}-${{ hashFiles('**/pnpm-lock.yaml') }} | ||
restore-keys: | | ||
${{ runner.os }}-${{ matrix.node-version }}-test-${{ env.cache-name }}- | ||
${{ runner.os }}-${{ matrix.node-version }}-test- | ||
${{ runner.os }}- | ||
- name: Install dependencies | ||
run: pnpm i --frozen-lockfile | ||
|
||
- name: Local build | ||
run: pnpm build | ||
|
||
- name: Check build product | ||
run: sh -c ./scripts/file-check.sh | ||
|
||
- name: Diff gen | ||
run: pnpm diff:table | ||
env: | ||
THRESHOLD: 50 | ||
|
||
- name: Read diff file | ||
id: diff | ||
uses: juliangruber/read-file-action@v1 | ||
with: | ||
path: ./tmp/diff.md | ||
|
||
- uses: actions-cool/check-user-permission@v2 | ||
id: isTeamMember | ||
with: | ||
require: 'write' | ||
username: ${{ github.event.pull_request.user.login }} | ||
|
||
- name: Set comment | ||
uses: actions-cool/maintain-one-comment@v2.0.2 | ||
if: steps.isTeamMember.outputs.require-result == 'true' | ||
with: | ||
token: ${{ secrets.GITHUB_TOKEN }} | ||
body: ${{ steps.diff.outputs.content }} | ||
body-include: '<sub>Generated with' | ||
|
||
- name: Echo comment | ||
if: steps.isTeamMember.outputs.require-result == 'false' | ||
run: | | ||
echo 'Error: compressed-size-action was unable to comment on your PR.' | ||
echo 'This can happen for PR's originating from a fork without write permissions.' | ||
echo ${{ steps.diff.outputs.content }} |
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,40 @@ | ||
name: 📦 Package Size Report | ||
|
||
on: | ||
pull_request: | ||
types: [opened, synchronize] | ||
|
||
jobs: | ||
size-report: | ||
runs-on: ubuntu-latest | ||
env: | ||
CI_JOB_NUMBER: 1 | ||
steps: | ||
- uses: actions/checkout@v2 | ||
|
||
- name: Setup node | ||
uses: actions/setup-node@v3 | ||
with: | ||
node-version: '16' | ||
|
||
- name: Setup pnpm | ||
uses: pnpm/action-setup@v2 | ||
with: | ||
version: latest | ||
|
||
- name: Cache ~/.pnpm-store | ||
uses: actions/cache@v2 | ||
env: | ||
cache-name: cache-pnpm-store | ||
with: | ||
path: ~/.pnpm-store | ||
key: ${{ runner.os }}-publish-${{ env.cache-name }}-${{ hashFiles('**/pnpm-lock.yaml') }} | ||
restore-keys: | | ||
${{ runner.os }}-publish-${{ env.cache-name }}- | ||
${{ runner.os }}-publish- | ||
${{ runner.os }}- | ||
- uses: preactjs/compressed-size-action@v2 | ||
with: | ||
repo-token: ${{ secrets.GITHUB_TOKEN }} | ||
pattern: './dist/element-plus/dist/*.{js,mjs,css}' |
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,28 @@ | ||
name: PR Open Greeting | ||
# Note that this `pull_request_target` is vulnerable, it grants write access to a fork repo | ||
# DO NOT ADD ANY CHECKOUT/CACHING in this workflow | ||
on: | ||
pull_request_target: | ||
types: [opened] | ||
|
||
jobs: | ||
pr-open-greeting: | ||
runs-on: ubuntu-latest | ||
steps: | ||
- uses: actions-cool/check-user-permission@v2 | ||
id: isTeamMember | ||
with: | ||
require: 'write' | ||
username: ${{ github.event.pull_request.user.login }} | ||
|
||
- uses: actions-awesome/pr-helper@1.0.15 | ||
if: steps.isTeamMember.outputs.require-result == 'false' | ||
with: | ||
actions: 'add-assignees, add-reviewers, greeting, add-labels' | ||
assignees: 'element-plus/backers' | ||
reviewers: 'element-plus/backers' | ||
labels: 'Contribution::Community' | ||
token: ${{ github.token }} | ||
pr-number: ${{ github.event.pull_request.number }} | ||
greeting-message: 'Hello %user%, thank you for contributing to %repo%, please see our [guideline](%guideline%) to see how to make contribution' | ||
greeting-guideline-address: 'https://github.com/element-plus/element-plus/blob/dev/CONTRIBUTING.md' |
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 |
---|---|---|
|
@@ -17,3 +17,4 @@ packages/element-plus/version.ts | |
*.local | ||
cypress/screenshots/* | ||
cypress/videos/* | ||
tmp |
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 |
---|---|---|
|
@@ -39,7 +39,7 @@ Use `list-type` to change the fileList style. | |
|
||
:::demo | ||
|
||
upload/photo-album | ||
upload/photo-wall | ||
|
||
::: | ||
|
||
|
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
File renamed without changes.
File renamed without changes.
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
Oops, something went wrong.