Skip to content

Commit

Permalink
More parallel
Browse files Browse the repository at this point in the history
  • Loading branch information
nicolo-ribaudo committed Oct 3, 2022
1 parent 23f12af commit 1e63a93
Showing 1 changed file with 19 additions and 11 deletions.
30 changes: 19 additions & 11 deletions .github/workflows/ci.yml
Expand Up @@ -504,20 +504,21 @@ jobs:
run: |
cd babel-test262-runner
npm ci
node lib/prepare-chunks 4 > ~/test262-chunks.json
node lib/prepare-chunks 8 > ~/test262-chunks.json
env:
TEST262_PATH: ../build/test262
- name: Upload chunks artifact
uses: actions/upload-artifact@v3
with:
name: test262-chunks
path: ~/test262-chunks.json
retention-days: 3

test262:
name: test262
strategy:
matrix:
chunk: [0, 1, 2, 3]
chunk: [0, 1, 2, 3, 4, 5, 6, 7]
runs-on: ubuntu-latest
needs: [build, test262-prepare]
steps:
Expand Down Expand Up @@ -564,27 +565,34 @@ jobs:
with:
name: test262-result-${{ matrix.chunk }}
path: ~/test262-${{ matrix.chunk }}.tap
retention-days: 3

test262-finish:
name: test262 - Analyze results
runs-on: ubuntu-latest
needs: test262
steps:
- uses: actions/download-artifact@v3
with:
name: test262-result-0
with: { name: test262-result-0 }
- uses: actions/download-artifact@v3
with:
name: test262-result-1
with: { name: test262-result-1 }
- uses: actions/download-artifact@v3
with:
name: test262-result-2
with: { name: test262-result-2 }
- uses: actions/download-artifact@v3
with:
name: test262-result-3
with: { name: test262-result-3 }
- uses: actions/download-artifact@v3
with: { name: test262-result-4 }
- uses: actions/download-artifact@v3
with: { name: test262-result-5 }
- uses: actions/download-artifact@v3
with: { name: test262-result-6 }
- uses: actions/download-artifact@v3
with: { name: test262-result-7 }
- name: Merge chunk results
run: |
cat test262-0.tap test262-1.tap test262-2.tap test262-3.tap | npx tap-merge > test262.tap
cat test262-0.tap test262-1.tap test262-2.tap test262-3.tap \
test262-4.tap test262-5.tap test262-6.tap test262-7.tap \
| npx tap-merge > test262.tap
- name: Create artifact with report results
uses: actions/upload-artifact@v3
with:
Expand Down

0 comments on commit 1e63a93

Please sign in to comment.