Skip to content

Commit

Permalink
👷 Run test.yml only for untested tests
Browse files Browse the repository at this point in the history
  • Loading branch information
neutron0831 committed Apr 18, 2023
1 parent 5b22902 commit 8dc1339
Showing 1 changed file with 6 additions and 3 deletions.
9 changes: 6 additions & 3 deletions .github/workflows/test.yml
Expand Up @@ -14,6 +14,8 @@ jobs:

steps:
- uses: actions/checkout@v3
with:
fetch-depth: 0
- uses: actions/setup-node@v3
with:
node-version: latest
Expand All @@ -26,8 +28,7 @@ jobs:
- name: Get pnpm store directory
id: pnpm-cache
shell: bash
run: |
echo "STORE_PATH=$(pnpm store path)" >> $GITHUB_OUTPUT
run: echo "STORE_PATH=$(pnpm store path)" >> $GITHUB_OUTPUT
- uses: actions/cache@v3
name: Setup pnpm cache
with:
Expand All @@ -40,4 +41,6 @@ jobs:
- name: Test
env:
NODE_OPTIONS: --max_old_space_size=6144
run: pnpm test
run: |
TEST_FILES=$(git diff --diff-filter=ACMR --name-only origin/${{ github.base_ref }}...origin/${{ github.head_ref }} **/*.test.ts)
pnpm vitest --silent --run $TEST_FILES

0 comments on commit 8dc1339

Please sign in to comment.