Skip to content

Commit

Permalink
Merge pull request #14 from nguyenbatranvan/feature/e2e_test
Browse files Browse the repository at this point in the history
Feature/e2e test
  • Loading branch information
nguyenbatranvan authored May 3, 2024
2 parents d1245ae + 5ea3b57 commit 1f7378f
Show file tree
Hide file tree
Showing 21 changed files with 13,363 additions and 14,665 deletions.
28 changes: 28 additions & 0 deletions .github/workflows/playwright.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,28 @@
name: Playwright Tests
on:
push:
branches: [ main, master ]
pull_request:
branches: [ main, master ]
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 deps
run: npm install --frozen-lockfile
- name: Install Playwright Browsers
run: npx playwright install --with-deps
- name: Run Playwright tests
run: npx playwright test
- uses: actions/upload-artifact@v4
if: always()
with:
name: playwright-report
path: playwright-report/
retention-days: 30
4 changes: 4 additions & 0 deletions .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -37,3 +37,7 @@ testem.log
# System Files
.DS_Store
Thumbs.db
/blob-report/
/playwright/.cache/
/playwright-report/
.nx/cache
2 changes: 1 addition & 1 deletion lerna.json
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,6 @@
"$schema": "node_modules/lerna/schemas/lerna-schema.json",
"version": "0.0.0",
"packages": [
"packages/examples/*"
"packages/**"
]
}
27 changes: 27 additions & 0 deletions nx.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,27 @@
{
"targetDefaults": {
"dev": {
"dependsOn": [
"^build"
]
},
"build": {
"dependsOn": []
},
"lint": {
"dependsOn": []
},
"preview": {
"dependsOn": []
},
"start": {
"dependsOn": []
},
"build-npm": {
"dependsOn": []
},
"prepublishOnly": {
"dependsOn": []
}
}
}
Loading

0 comments on commit 1f7378f

Please sign in to comment.