Skip to content

Commit

Permalink
test
Browse files Browse the repository at this point in the history
  • Loading branch information
Moon-DaeSeung committed Mar 21, 2024
1 parent 3cce4bb commit 1b18ca9
Show file tree
Hide file tree
Showing 5 changed files with 81 additions and 6 deletions.
31 changes: 31 additions & 0 deletions .github/workflows/playwright.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,31 @@
name: Playwright Tests
on:
push:
branches: [ main, master, dev, test-34-interaction ]
paths:
- 'packages/test/**'
- 'packages/flitter/**'
pull_request:
branches: [ main, master, dev ]
paths:
- 'packages/test/**'
- 'packages/flitter/**'
jobs:
test:
timeout-minutes: 60
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- uses: actions/setup-node@v4
with:
node-version: lts/*
- name: Install dependencies
run: npm i
- name: Run Playwright tests
run: npm run test:playwright
- uses: actions/upload-artifact@v4
if: always()
with:
name: playwright-report
path: packages/test/playwright-report/
retention-days: 30
5 changes: 4 additions & 1 deletion .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -7,4 +7,7 @@ dist/
storybook-static/
package
.svelte-kit

/test-results/
/playwright-report/
/blob-report/
/playwright/.cache/
7 changes: 7 additions & 0 deletions .vscode/launch.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,13 @@
{
"version": "0.2.0",
"configurations": [
{
"name": "Attach to Chrome",
"port": 9222,
"request": "attach",
"type": "chrome",
"webRoot": "${workspaceFolder}"
},
{
"command": "./node_modules/.bin/astro dev",
"name": "Development server",
Expand Down
40 changes: 36 additions & 4 deletions package-lock.json

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

4 changes: 3 additions & 1 deletion package.json
Original file line number Diff line number Diff line change
Expand Up @@ -3,14 +3,15 @@
"version": "1.0.0",
"description": "A declarative, widget-based library built on SVG for simplifying data visualization with a Flutter-like syntax.",
"scripts": {
"test": "echo \"Error: no test specified\" && exit 1",
"flitter:build": "npm run build -workspace=@meursyphus/flitter",
"docs:start": "npm run start --workspace=@meursyphus/flitter-docs",
"docs:build": "npm run build --workspace=@meursyphus/flitter-docs",
"story:start": "npm run storybook --workspace=@meursyphus/flitter-story",
"story:build": "npm run build-storybook --workspace=@meursyphus/flitter-story",
"story:chromatic": "npm run chromatic --workspace=@meursyphus/flitter-story",
"test:dev": "npm run dev --workspace=@meursyphus/test",
"test:playwright": "npm run test:integration --workspace=@meursyphus/test",
"pretest:playwright": "npm run flitter:build",
"prestory:chromatic": "npm run flitter:build",
"predocs:build": "npm run flitter:build"
},
Expand All @@ -20,6 +21,7 @@
"packages/*"
],
"devDependencies": {
"@types/node": "^20.11.30",
"husky": "^9.0.11",
"lint-staged": "^15.2.2"
},
Expand Down

0 comments on commit 1b18ca9

Please sign in to comment.