-
Notifications
You must be signed in to change notification settings - Fork 74
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
chore: Primary CI on Node.js 18 (merge #1894)
- Loading branch information
Showing
39 changed files
with
1,459 additions
and
7,062 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,34 @@ | ||
name: Browser Tests | ||
on: | ||
push: | ||
branches: [master] | ||
pull_request: | ||
branches: [master] | ||
jobs: | ||
browser-tests: | ||
timeout-minutes: 30 | ||
runs-on: ubuntu-latest | ||
steps: | ||
- uses: actions/checkout@v3 | ||
- uses: actions/setup-node@v3 | ||
with: | ||
node-version: 18 | ||
- name: Install dependencies | ||
run: yarn install | ||
- name: Build artifacts | ||
run: yarn build | ||
- name: Install browser test dependencies | ||
working-directory: browser-test | ||
run: npm ci | ||
- name: Install Playwright Browsers | ||
working-directory: browser-test | ||
run: npx playwright install --with-deps | ||
- name: Run Playwright tests | ||
working-directory: browser-test | ||
run: npx playwright test | ||
- uses: actions/upload-artifact@v3 | ||
if: always() | ||
with: | ||
name: browser-test-report | ||
path: browser-test/playwright-report/ | ||
retention-days: 30 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,5 @@ | ||
node_modules/ | ||
/test-results/ | ||
/playwright-report/ | ||
/blob-report/ | ||
/playwright/.cache/ |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,7 @@ | ||
<!doctype html> | ||
<title>Testing</title> | ||
<script src="../../packages/ses/dist/ses.umd.js"></script> | ||
<script> | ||
lockdown(); | ||
document.querySelector('title').innerText = 'Pass'; | ||
</script> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,15 @@ | ||
const path = require('path'); | ||
const http = require('http'); | ||
const handler = require('serve-handler'); | ||
|
||
const config = { | ||
public: path.resolve(__dirname, '..'), | ||
}; | ||
|
||
const server = http.createServer((request, response) => | ||
handler(request, response, config)); | ||
|
||
server.listen(0, '127.0.0.1', () => { | ||
const { port } = server.address(); | ||
console.log(`http://127.0.0.1:${port}`); | ||
}); |
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,14 @@ | ||
{ | ||
"name": "browser-test", | ||
"private": true, | ||
"author": "Endo Contributors", | ||
"license": "Apache-2.0", | ||
"scripts": { | ||
"test": "playwright test" | ||
}, | ||
"devDependencies": { | ||
"serve-handler": "^6.1.5", | ||
"@playwright/test": "^1.41.2", | ||
"@types/node": "^20.11.16" | ||
} | ||
} |
Oops, something went wrong.