Skip to content

Commit

Permalink
Run playwright tests in CI
Browse files Browse the repository at this point in the history
  • Loading branch information
planger committed Feb 3, 2022
1 parent 5ba2d9a commit 3fa710e
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 0 deletions.
6 changes: 6 additions & 0 deletions .github/workflows/build.yml
Original file line number Diff line number Diff line change
Expand Up @@ -64,6 +64,12 @@ jobs:
with:
run: yarn browser test

- name: Test (playwright)
if: matrix.tests != 'skip' && runner.os == 'Linux' && matrix.node =='16.x'
uses: GabrielBB/xvfb-action@v1
with:
run: yarn test:playwright

- name: Test (electron)
if: matrix.tests != 'skip' && runner.os == 'Linux'
uses: GabrielBB/xvfb-action@v1
Expand Down
1 change: 1 addition & 0 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -75,6 +75,7 @@
"rebuild:clean": "rimraf .browser_modules",
"test": "yarn -s test:theia && yarn -s electron test && yarn -s browser test",
"test:theia": "lerna run --scope \"@theia/!(example-)*\" test --stream --concurrency=1",
"test:playwright": "concurrently --success first -c gray,blue -k -n theia,playwright \"yarn browser start\" \"yarn -s --cwd examples/playwright ui-tests\"",
"watch": "concurrently --kill-others -n tsc,browser,electron -c red,yellow,blue \"tsc -b -w --preserveWatchOutput\" \"yarn -s --cwd examples/browser watch:bundle\" \"yarn -s --cwd examples/electron watch:bundle\"",
"watch:compile": "concurrently --kill-others -n cleanup,tsc -c magenta,red \"ts-clean dev-packages/* packages/* -w\" \"tsc -b -w --preserveWatchOutput\"",
"performance:startup": "yarn -s performance:startup:browser && yarn -s performance:startup:electron",
Expand Down

0 comments on commit 3fa710e

Please sign in to comment.