Skip to content
10 changes: 8 additions & 2 deletions .github/workflows/playwright.yml
Original file line number Diff line number Diff line change
@@ -1,9 +1,9 @@
name: Playwright Tests
on:
push:
branches: [ main, master ]
branches: [ main, dev ]
pull_request:
branches: [ main, master ]
branches: [ main, dev ]
jobs:
test:
timeout-minutes: 60
Expand All @@ -21,6 +21,12 @@ jobs:
run: npx @canyonjs/git-diff
- name: Run Playwright tests
run: pnpm run test
- name: Upload coverage to Canyon
uses: canyon-project/canyon-action@v1.0.9
with:
coverage-file: coverage/coverage-final.json
canyon-url: https://app.canyonjs.io
instrument-cwd: ${{ github.workspace }}
- uses: actions/upload-artifact@v4
if: ${{ !cancelled() }}
with:
Expand Down
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@
"scripts": {
"dev": "vite",
"build": "vite build",
"gen-coverage-report": "nyc report --reporter=@canyonjs/report-html --temp-dir=./.canyon_output",
"gen-coverage-report": "nyc report --reporter=json --reporter=@canyonjs/report-html --temp-dir=./.canyon_output",
"test": "playwright test && npm run gen-coverage-report"
},
"dependencies": {
Expand Down
4 changes: 4 additions & 0 deletions src/App.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -6,6 +6,10 @@ import './App.css'
function App() {
const [count, setCount] = useState(0)
console.log(123)
console.log('123')
console.log('123')
console.log('567')
console.log('890')
return (
<>
<div>
Expand Down