Skip to content

Commit

Permalink
build: fail early and publish test results for better debugging pipeline
Browse files Browse the repository at this point in the history
  • Loading branch information
adameichelkraut committed Sep 2, 2023
1 parent 57a0662 commit 5aadb22
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 1 deletion.
5 changes: 5 additions & 0 deletions .github/workflows/release.yml
Original file line number Diff line number Diff line change
Expand Up @@ -41,6 +41,11 @@ jobs:
run: |
pnpm test:local
- uses: actions/upload-artifact@v3
if: failure()
with:
path: test-results-local

- name: Automate Github Release
env:
GITHUB_TOKEN: ${{ secrets.PAT_GITHUB_TOKEN }}
Expand Down
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@
"start:update": "pnpm build && ./batect --override-image storyshots=local-storyshots storyshots-update",
"build": "docker build -t local-storyshots -f Dockerfile.storyshots .",
"test:local": "pnpm build && IMAGE=local-storyshots pnpm test",
"test": "bash shellspec"
"test": "bash shellspec --fail-fast"
},
"devDependencies": {
"@playwright/test": "^1.29.1",
Expand Down

0 comments on commit 5aadb22

Please sign in to comment.