Skip to content

Commit

Permalink
测试action 过滤目录添加test目录
Browse files Browse the repository at this point in the history
  • Loading branch information
RSS1102 committed Oct 22, 2024
1 parent 3956632 commit e4c4c49
Showing 1 changed file with 9 additions and 8 deletions.
17 changes: 9 additions & 8 deletions .github/workflows/pr-test.yml
Original file line number Diff line number Diff line change
Expand Up @@ -3,11 +3,12 @@ name: PR Test
on:
pull_request_target:
branches: [main, dev]
paths: # 这里是用来指定哪个文件更改,才会触发的
- 'src/**'
- 'package.json'
- 'types/**'
- 'examples/**'
paths: # 这里是用来指定哪个文件更改,才会触发的
- "src/**"
- "package.json"
- "types/**"
- "examples/**"
- "test/**"

jobs:
build:
Expand All @@ -21,7 +22,7 @@ jobs:
steps:
- uses: actions/checkout@v2
with:
ref: '${{ env.HEAD_SHA }}'
ref: "${{ env.HEAD_SHA }}"

- name: Get changed files and operations
run: |
Expand All @@ -44,7 +45,7 @@ jobs:
if: ${{ env.GIT_DIFF_FILES }}
with:
repository: ${{ github.repository }}
ref: '${{ env.BASE_SHA }}'
ref: "${{ env.BASE_SHA }}"
path: base-repo

- name: Replace changed files
Expand All @@ -59,7 +60,7 @@ jobs:
uses: actions/setup-node@v2
with:
node-version: 16.x
cache: 'yarn'
cache: "yarn"

- name: Install dependencies
uses: borales/[email protected]
Expand Down

0 comments on commit e4c4c49

Please sign in to comment.