diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml index 8cc71f138..96af71f2d 100644 --- a/.github/workflows/ci.yml +++ b/.github/workflows/ci.yml @@ -13,7 +13,8 @@ jobs: - uses: actions/checkout@v3 with: fetch-depth: 0 - - id: check + - name: Detect UI-only changes + id: check run: | DEFAULT_BRANCH="${{ github.event.repository.default_branch }}" @@ -120,7 +121,8 @@ jobs: tests: ${{ steps.find.outputs.tests }} steps: - uses: actions/checkout@v3 - - id: find + - name: Discover VM test files + id: find run: | tests=$(find packages/umbreld/source -name "*.vm.test.ts" | sed 's|packages/umbreld/||' | jq -R -s -c 'split("\n") | map(select(length > 0)) | map({path: ., name: (. | split("/") | last | sub("\\.vm\\.test\\.ts$"; ""))})') echo "tests=$tests" >> $GITHUB_OUTPUT @@ -169,7 +171,8 @@ jobs: tests: ${{ steps.find.outputs.tests }} steps: - uses: actions/checkout@v3 - - id: find + - name: Discover integration test files + id: find run: | tests=$(find packages/umbreld/source -name "*.integration.test.ts" | sed 's|packages/umbreld/||' | jq -R -s -c 'split("\n") | map(select(length > 0)) | map({path: ., name: (. | split("/") | last | sub("\\.integration\\.test\\.ts$"; ""))})') echo "tests=$tests" >> $GITHUB_OUTPUT