Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
12 changes: 11 additions & 1 deletion .github/actions/test-package/action.yml
Original file line number Diff line number Diff line change
Expand Up @@ -19,9 +19,19 @@ runs:
- name: Test
working-directory: ./packages/${{ inputs.package_name }}
shell: bash
env:
TAP_REPORTER: "junit"
TAP_REPORTER_FILE: "test-results/junit.xml"
run: |
mkdir -p test-results
npm run test | tee -a ./test-results/${{ inputs.package_name }}-test-results.txt
npm run test
- name: Publish test reports
if: ${{ !cancelled() }}
uses: EnricoMi/publish-unit-test-result-action@v2
with:
files: "./packages/${{ inputs.package_name }}/test-results/**/*"
check_name: "Test report for ${{ inputs.package_name }}"
test_file_prefix: "+packages/${{ inputs.package_name }}/"
- name: Store Test Results
if: ${{ !cancelled() }}
uses: actions/upload-artifact@65c4c4a1ddee5b72f698fdd19549f0f0fb45cf08 # v4
Expand Down
2 changes: 1 addition & 1 deletion .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -91,7 +91,7 @@ jobs:
name: Results
runs-on: ubuntu-latest
needs: test
if: ${{ always() }}
if: ${{ !cancelled() }}
steps:
- run: |
case "${{ needs.test.result }}" in
Expand Down
4 changes: 1 addition & 3 deletions packages/scratch-gui/.gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -8,6 +8,7 @@ npm-*
# Testing
/.nyc_output
/coverage
/test-results

# Build
/build
Expand All @@ -26,6 +27,3 @@ npm-*

# for act
.secrets

# Generated test results
/test-results
1 change: 1 addition & 0 deletions packages/scratch-render/.gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -9,6 +9,7 @@ npm-*
/.nyc_output
/.tap
/coverage
/test-results

# IDEA
/.idea
Expand Down
1 change: 1 addition & 0 deletions packages/scratch-svg-renderer/.gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -11,6 +11,7 @@ npm-*

# Test
/.tap
/test-results

# Editors
/#*
Expand Down
1 change: 1 addition & 0 deletions packages/scratch-vm/.gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -9,6 +9,7 @@ npm-*
/.nyc_output
/.tap
/coverage
/test-results

# Editor
/.idea
Expand Down
Loading