Skip to content

Commit

Permalink
Once more with mkdir
Browse files Browse the repository at this point in the history
  • Loading branch information
philrenaud committed Nov 26, 2024
1 parent 77ce4ef commit fef9738
Showing 1 changed file with 23 additions and 5 deletions.
28 changes: 23 additions & 5 deletions .github/workflows/test-ui.yml
Original file line number Diff line number Diff line change
Expand Up @@ -70,14 +70,32 @@ jobs:
# run: |
# yarn exam:parallel --split=${{ matrix.split }} --partition=${{ matrix.partition }} --json-report=test-results-${{ matrix.partition }}.json
- name: Create fake file
run: touch test-results/faux-${{ matrix.partition }}.json
run: |
mkdir -p test-results
touch test-results/faux-${{ matrix.partition }}.json
ls -la test-results/ # Debug: List directory contents
pwd # Debug: Show current directory
echo "File exists: $(test -f test-results/faux-${{ matrix.partition }}.json && echo "yes" || echo "no")"
- name: Upload partition test results
# if: github.event_name == 'push' && github.ref == 'refs/heads/main'
uses: actions/upload-artifact@b4b15b8c7c6ac21ea08fcf65892d2ee8f75cf882 # v4.4.3
if: github.event_name == 'push' && github.ref == 'refs/heads/main'
uses: actions/upload-artifact@v4

Check warning

Code scanning / GitHub Actions Scanner

Missing pinned commit hash for GitHub Actions configuration Warning test

found external action "actions/upload-artifact@v4" without pinned version hash
with:
name: test-results-${{ matrix.partition }}
path: test-results-${{ matrix.partition }}.json
path: test-results/faux-${{ matrix.partition }}.json
retention-days: 90


# run: |
# mkdir -p test-results
# touch test-results/faux-${{ matrix.partition }}.json
# - name: Upload partition test results
# # if: github.event_name == 'push' && github.ref == 'refs/heads/main'
# uses: actions/upload-artifact@b4b15b8c7c6ac21ea08fcf65892d2ee8f75cf882 # v4.4.3
# with:
# name: test-results-${{ matrix.partition }}
# path: test-results/faux-${{ matrix.partition }}.json
# retention-days: 90
finalize:
needs:
- pre-test
Expand Down Expand Up @@ -116,7 +134,7 @@ jobs:
const fs = require('fs');
const results = [];
for (let i = 1; i <= 4; i++) {
const data = JSON.parse(fs.readFileSync('test-results/test-results-' + i));
const data = JSON.parse(fs.readFileSync('test-results/faux-' + i));
results.push(...data.testResults);
}
fs.writeFileSync('combined-test-results.json', JSON.stringify({
Expand Down

0 comments on commit fef9738

Please sign in to comment.