Skip to content

Commit

Permalink
add a single job for generating test reports
Browse files Browse the repository at this point in the history
  • Loading branch information
dmfalke committed Jan 16, 2025
1 parent 6e699d6 commit eab6fe7
Showing 1 changed file with 13 additions and 3 deletions.
16 changes: 13 additions & 3 deletions .github/workflows/npm-publish-sites.yml
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@ jobs:
outputs:
matrix: ${{ steps.set-matrix.outputs.matrix }}
steps:
- uses: actions/checkout@v3
- uses: actions/checkout@v4
- id: set-matrix
run: echo "matrix=$(ls packages/sites | jq -Rsc '. / "\n" - [""]')" >> $GITHUB_OUTPUT

Expand All @@ -29,8 +29,8 @@ jobs:
matrix:
dir: ${{fromJSON(needs.dirs.outputs.matrix)}}
steps:
- uses: actions/checkout@v3
- uses: actions/setup-node@v3
- uses: actions/checkout@v4
- uses: actions/setup-node@v4
with:
node-version: 14
cache: yarn
Expand Down Expand Up @@ -61,6 +61,16 @@ jobs:
access: public
package: packages/sites/${{ matrix.dir }}/package.json
tag: ${{ env.npm_tag }}
tests:
name: Generate test reports
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- uses: actions/setup-node@v4
with:
node-version: 14
cache: yarn
- run: yarn
- run: ./tools/scripts/test-report
- uses: actions/upload-artifact@v4
with:
Expand Down

0 comments on commit eab6fe7

Please sign in to comment.