diff --git a/.github/workflows/pr-test.yml b/.github/workflows/pr-test.yml index 3eb9c2bc..d17d959f 100644 --- a/.github/workflows/pr-test.yml +++ b/.github/workflows/pr-test.yml @@ -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: @@ -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: | @@ -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 @@ -59,7 +60,7 @@ jobs: uses: actions/setup-node@v2 with: node-version: 16.x - cache: 'yarn' + cache: "yarn" - name: Install dependencies uses: borales/actions-yarn@v3.0.0