Skip to content

Commit

Permalink
add conditional for publish step, move test summary
Browse files Browse the repository at this point in the history
  • Loading branch information
Zac Boyd committed Aug 6, 2024
1 parent 431d7c8 commit ad93163
Showing 1 changed file with 6 additions and 5 deletions.
11 changes: 6 additions & 5 deletions .github/workflows/build-and-test.yml
Original file line number Diff line number Diff line change
Expand Up @@ -52,6 +52,11 @@ jobs:
name: test-results-node-${{ matrix.node-version }}-${{ matrix.shard }}
path: ./test-reports

- name: Test summary
uses: test-summary/action@v2
with:
paths: ./test-reports/**/*.xml

lint-check:
runs-on: runs-on,runner=4cpu-linux-x64
steps:
Expand All @@ -63,6 +68,7 @@ jobs:

publish:
runs-on: runs-on,runner=4cpu-linux-x64
if: github.event_name == 'release'
needs:
- test
- lint-check
Expand All @@ -75,8 +81,3 @@ jobs:

- name: Publish
run: npm publish --access=public

- name: Test summary
uses: test-summary/action@v2
with:
paths: ./test-reports/**/*.xml

0 comments on commit ad93163

Please sign in to comment.