mirror of
https://github.com/nocobase/nocobase
synced 2024-11-15 05:46:00 +00:00
refactor: optimize e2e workflow (#4883)
* refactor: optimize e2e workflow * fix: fix * Revert "fix: fix" This reverts commitf256b2394b
. * Revert "refactor: optimize e2e workflow" This reverts commitbb7d8c783e
. * refactor: optimize e2e workflow * refactor: make better for workflow * chore: optimize git logs * fix: should to fetch all * chore: test * chore: test * Revertt "chore: test" This reverts commit049088ad19
. * chore: test
This commit is contained in:
parent
41e08c6d29
commit
9c7fcb013f
100
.github/workflows/e2e.yml
vendored
100
.github/workflows/e2e.yml
vendored
@ -38,12 +38,20 @@ jobs:
|
|||||||
path: packages/pro-plugins
|
path: packages/pro-plugins
|
||||||
fetch-depth: 0
|
fetch-depth: 0
|
||||||
ssh-key: ${{ secrets.SUBMODULE_SSH_KEY }}
|
ssh-key: ${{ secrets.SUBMODULE_SSH_KEY }}
|
||||||
- name: git checkout ${{ github.event.pull_request.base.ref }}
|
- run: |
|
||||||
run: cd packages/pro-plugins && git checkout ${{ github.event.pull_request.base.ref }}
|
cd packages/pro-plugins &&
|
||||||
continue-on-error: true
|
if git show-ref --quiet refs/remotes/origin/${{ github.head_ref || github.ref_name }}; then
|
||||||
- name: git checkout ${{ github.head_ref || github.ref_name }}
|
git checkout ${{ github.head_ref || github.ref_name }}
|
||||||
run: cd packages/pro-plugins && git checkout${{ github.head_ref || github.ref_name }}
|
else
|
||||||
continue-on-error: true
|
if git show-ref --quiet refs/remotes/origin/${{ github.event.pull_request.base.ref }}; then
|
||||||
|
git checkout ${{ github.event.pull_request.base.ref }}
|
||||||
|
else
|
||||||
|
git checkout main
|
||||||
|
fi
|
||||||
|
fi
|
||||||
|
- name: Git logs
|
||||||
|
run: |
|
||||||
|
cd packages/pro-plugins && git log --color --graph --pretty=format:'%Cred%h%Creset -%C(yellow)%d%Creset %s %Cgreen(%cr) %C(bold blue)<%an>%Creset' --abbrev-commit -n 10
|
||||||
- name: Use Node.js
|
- name: Use Node.js
|
||||||
uses: actions/setup-node@v4
|
uses: actions/setup-node@v4
|
||||||
with:
|
with:
|
||||||
@ -94,12 +102,20 @@ jobs:
|
|||||||
path: packages/pro-plugins
|
path: packages/pro-plugins
|
||||||
fetch-depth: 0
|
fetch-depth: 0
|
||||||
ssh-key: ${{ secrets.SUBMODULE_SSH_KEY }}
|
ssh-key: ${{ secrets.SUBMODULE_SSH_KEY }}
|
||||||
- name: git checkout ${{ github.event.pull_request.base.ref }}
|
- run: |
|
||||||
run: cd packages/pro-plugins && git checkout ${{ github.event.pull_request.base.ref }}
|
cd packages/pro-plugins &&
|
||||||
continue-on-error: true
|
if git show-ref --quiet refs/remotes/origin/${{ github.head_ref || github.ref_name }}; then
|
||||||
- name: git checkout ${{ github.head_ref || github.ref_name }}
|
git checkout ${{ github.head_ref || github.ref_name }}
|
||||||
run: cd packages/pro-plugins && git checkout ${{ github.head_ref || github.ref_name }}
|
else
|
||||||
continue-on-error: true
|
if git show-ref --quiet refs/remotes/origin/${{ github.event.pull_request.base.ref }}; then
|
||||||
|
git checkout ${{ github.event.pull_request.base.ref }}
|
||||||
|
else
|
||||||
|
git checkout main
|
||||||
|
fi
|
||||||
|
fi
|
||||||
|
- name: Git logs
|
||||||
|
run: |
|
||||||
|
cd packages/pro-plugins && git log --color --graph --pretty=format:'%Cred%h%Creset -%C(yellow)%d%Creset %s %Cgreen(%cr) %C(bold blue)<%an>%Creset' --abbrev-commit -n 10
|
||||||
- name: Set variables
|
- name: Set variables
|
||||||
continue-on-error: true # 外部开发者提交 PR 的时候因为没有权限这里会报错,为了能够继续执行后续步骤,所以这里设置为 continue-on-error: true
|
continue-on-error: true # 外部开发者提交 PR 的时候因为没有权限这里会报错,为了能够继续执行后续步骤,所以这里设置为 continue-on-error: true
|
||||||
run: |
|
run: |
|
||||||
@ -181,12 +197,20 @@ jobs:
|
|||||||
path: packages/pro-plugins
|
path: packages/pro-plugins
|
||||||
fetch-depth: 0
|
fetch-depth: 0
|
||||||
ssh-key: ${{ secrets.SUBMODULE_SSH_KEY }}
|
ssh-key: ${{ secrets.SUBMODULE_SSH_KEY }}
|
||||||
- name: git checkout ${{ github.event.pull_request.base.ref }}
|
- run: |
|
||||||
run: cd packages/pro-plugins && git checkout ${{ github.event.pull_request.base.ref }}
|
cd packages/pro-plugins &&
|
||||||
continue-on-error: true
|
if git show-ref --quiet refs/remotes/origin/${{ github.head_ref || github.ref_name }}; then
|
||||||
- name: git checkout ${{ github.head_ref || github.ref_name }}
|
git checkout ${{ github.head_ref || github.ref_name }}
|
||||||
run: cd packages/pro-plugins && git checkout ${{ github.head_ref || github.ref_name }}
|
else
|
||||||
continue-on-error: true
|
if git show-ref --quiet refs/remotes/origin/${{ github.event.pull_request.base.ref }}; then
|
||||||
|
git checkout ${{ github.event.pull_request.base.ref }}
|
||||||
|
else
|
||||||
|
git checkout main
|
||||||
|
fi
|
||||||
|
fi
|
||||||
|
- name: Git logs
|
||||||
|
run: |
|
||||||
|
cd packages/pro-plugins && git log --color --graph --pretty=format:'%Cred%h%Creset -%C(yellow)%d%Creset %s %Cgreen(%cr) %C(bold blue)<%an>%Creset' --abbrev-commit -n 10
|
||||||
- name: Set variables
|
- name: Set variables
|
||||||
continue-on-error: true # 外部开发者提交 PR 的时候因为没有权限这里会报错,为了能够继续执行后续步骤,所以这里设置为 continue-on-error: true
|
continue-on-error: true # 外部开发者提交 PR 的时候因为没有权限这里会报错,为了能够继续执行后续步骤,所以这里设置为 continue-on-error: true
|
||||||
run: |
|
run: |
|
||||||
@ -268,12 +292,20 @@ jobs:
|
|||||||
path: packages/pro-plugins
|
path: packages/pro-plugins
|
||||||
fetch-depth: 0
|
fetch-depth: 0
|
||||||
ssh-key: ${{ secrets.SUBMODULE_SSH_KEY }}
|
ssh-key: ${{ secrets.SUBMODULE_SSH_KEY }}
|
||||||
- name: git checkout ${{ github.event.pull_request.base.ref }}
|
- run: |
|
||||||
run: cd packages/pro-plugins && git checkout ${{ github.event.pull_request.base.ref }}
|
cd packages/pro-plugins &&
|
||||||
continue-on-error: true
|
if git show-ref --quiet refs/remotes/origin/${{ github.head_ref || github.ref_name }}; then
|
||||||
- name: git checkout ${{ github.head_ref || github.ref_name }}
|
git checkout ${{ github.head_ref || github.ref_name }}
|
||||||
run: cd packages/pro-plugins && git checkout ${{ github.head_ref || github.ref_name }}
|
else
|
||||||
continue-on-error: true
|
if git show-ref --quiet refs/remotes/origin/${{ github.event.pull_request.base.ref }}; then
|
||||||
|
git checkout ${{ github.event.pull_request.base.ref }}
|
||||||
|
else
|
||||||
|
git checkout main
|
||||||
|
fi
|
||||||
|
fi
|
||||||
|
- name: Git logs
|
||||||
|
run: |
|
||||||
|
cd packages/pro-plugins && git log --color --graph --pretty=format:'%Cred%h%Creset -%C(yellow)%d%Creset %s %Cgreen(%cr) %C(bold blue)<%an>%Creset' --abbrev-commit -n 10
|
||||||
- name: Set variables
|
- name: Set variables
|
||||||
continue-on-error: true # 外部开发者提交 PR 的时候因为没有权限这里会报错,为了能够继续执行后续步骤,所以这里设置为 continue-on-error: true
|
continue-on-error: true # 外部开发者提交 PR 的时候因为没有权限这里会报错,为了能够继续执行后续步骤,所以这里设置为 continue-on-error: true
|
||||||
run: |
|
run: |
|
||||||
@ -355,12 +387,20 @@ jobs:
|
|||||||
path: packages/pro-plugins
|
path: packages/pro-plugins
|
||||||
fetch-depth: 0
|
fetch-depth: 0
|
||||||
ssh-key: ${{ secrets.SUBMODULE_SSH_KEY }}
|
ssh-key: ${{ secrets.SUBMODULE_SSH_KEY }}
|
||||||
- name: git checkout ${{ github.event.pull_request.base.ref }}
|
- run: |
|
||||||
run: cd packages/pro-plugins && git checkout ${{ github.event.pull_request.base.ref }}
|
cd packages/pro-plugins &&
|
||||||
continue-on-error: true
|
if git show-ref --quiet refs/remotes/origin/${{ github.head_ref || github.ref_name }}; then
|
||||||
- name: git checkout ${{ github.head_ref || github.ref_name }}
|
git checkout ${{ github.head_ref || github.ref_name }}
|
||||||
run: cd packages/pro-plugins && git checkout ${{ github.head_ref || github.ref_name }}
|
else
|
||||||
continue-on-error: true
|
if git show-ref --quiet refs/remotes/origin/${{ github.event.pull_request.base.ref }}; then
|
||||||
|
git checkout ${{ github.event.pull_request.base.ref }}
|
||||||
|
else
|
||||||
|
git checkout main
|
||||||
|
fi
|
||||||
|
fi
|
||||||
|
- name: Git logs
|
||||||
|
run: |
|
||||||
|
cd packages/pro-plugins && git log --color --graph --pretty=format:'%Cred%h%Creset -%C(yellow)%d%Creset %s %Cgreen(%cr) %C(bold blue)<%an>%Creset' --abbrev-commit -n 10
|
||||||
- name: Set variables
|
- name: Set variables
|
||||||
continue-on-error: true # 外部开发者提交 PR 的时候因为没有权限这里会报错,为了能够继续执行后续步骤,所以这里设置为 continue-on-error: true
|
continue-on-error: true # 外部开发者提交 PR 的时候因为没有权限这里会报错,为了能够继续执行后续步骤,所以这里设置为 continue-on-error: true
|
||||||
run: |
|
run: |
|
||||||
|
Loading…
Reference in New Issue
Block a user