Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

feat: add playwright CI testing #1542

Merged
merged 38 commits into from
Sep 22, 2023
Merged
Show file tree
Hide file tree
Changes from 25 commits
Commits
Show all changes
38 commits
Select commit Hold shift + click to select a range
d42bfad
add tests-browser package
weboko Sep 6, 2023
1ed0b75
rename to browser
weboko Sep 6, 2023
8709795
add playwright and experiment with karma
weboko Sep 6, 2023
270d5ce
add lock
weboko Sep 6, 2023
45ea36a
remove karma
weboko Sep 7, 2023
b06701a
remove readme
weboko Sep 7, 2023
139abee
replace default app, rename
weboko Sep 7, 2023
3ee0bda
add and configure playwright
weboko Sep 7, 2023
3383412
up package-lock
weboko Sep 8, 2023
144b317
Merge branch 'master' of github.com:waku-org/js-waku into weboko/bund…
weboko Sep 8, 2023
c5ffa29
use @waku/create-app, add scripts to handle it
weboko Sep 8, 2023
fe611c1
remove tsconfig
weboko Sep 8, 2023
43ada36
merge with master
weboko Sep 8, 2023
6af9faa
merge with master
weboko Sep 8, 2023
0374115
Merge branch 'master' of github.com:waku-org/js-waku into weboko/bund…
weboko Sep 11, 2023
e075920
update playwright script
weboko Sep 11, 2023
36d0b4d
move dependency to root
weboko Sep 11, 2023
568e3ac
set folder
weboko Sep 11, 2023
9da9bff
up
weboko Sep 11, 2023
e96e42d
try install step
weboko Sep 11, 2023
e083d76
add playwright dep
weboko Sep 11, 2023
33c504e
remove step
weboko Sep 11, 2023
efff199
add es module utils
weboko Sep 11, 2023
a81c25f
fix import issue
weboko Sep 11, 2023
d1d4b64
run on master
weboko Sep 11, 2023
8611768
use container + merge with master
weboko Sep 19, 2023
5086da2
use image prop
weboko Sep 19, 2023
93856b3
marge with master
weboko Sep 21, 2023
d1e85bd
use dotenv-flow, set .env.local
weboko Sep 22, 2023
60140ad
add log, use dotenv-flow
weboko Sep 22, 2023
92dcdcc
add env var to ci
weboko Sep 22, 2023
789a87f
add env vars to CI
weboko Sep 22, 2023
92857a3
return install of deps
weboko Sep 22, 2023
0c61abf
return container & log build step
weboko Sep 22, 2023
acd731d
Merge branch 'master' of github.com:waku-org/js-waku into weboko/bund…
weboko Sep 22, 2023
3ffa903
upgrade @waku/create-app
weboko Sep 22, 2023
9302014
merge with master
weboko Sep 22, 2023
78d31a9
fix firefox in container problem
weboko Sep 22, 2023
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
1 change: 1 addition & 0 deletions .eslintrc.json
Original file line number Diff line number Diff line change
Expand Up @@ -49,6 +49,7 @@
"**/*.spec.ts",
"**/tests/**",
"**/rollup.config.js",
"**/playwright.config.ts",
"**/.eslintrc.cjs",
"**/karma.conf.cjs"
]
Expand Down
35 changes: 35 additions & 0 deletions .github/workflows/playwright.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,35 @@
name: Playwright tests

on:
push:
branches: [ master ]
pull_request:
branches: [ master ]

env:
NODE_JS: "18"

jobs:
test:
timeout-minutes: 60
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v3
- uses: actions/setup-node@v3
with:
node-version: ${{ env.NODE_JS }}

- uses: ./.github/actions/npm

- name: Install Playwright Browsers
weboko marked this conversation as resolved.
Show resolved Hide resolved
run: npx playwright install --with-deps

- name: Run Playwright tests
run: npm run test --workspace=@waku/browser-tests

- uses: actions/upload-artifact@v3
if: always()
with:
name: playwright-report
path: playwright-report/
retention-days: 30
3 changes: 3 additions & 0 deletions .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -9,3 +9,6 @@ coverage
*.log
*.tsbuildinfo
docs
test-results
playwright-report
example
Loading
Loading