Skip to content

Commit

Permalink
Merge branch 'master' into gp/render-demo
Browse files Browse the repository at this point in the history
  • Loading branch information
gpoitch authored Nov 14, 2024
2 parents c038983 + 7f0013c commit 9d3c4c4
Show file tree
Hide file tree
Showing 3 changed files with 52 additions and 46 deletions.
18 changes: 11 additions & 7 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -9,15 +9,19 @@ jobs:
build:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v3
- name: Use Node.js
uses: actions/setup-node@v3
with: { node-version: 16 }
- run: yarn install
- uses: actions/checkout@v4
- uses: actions/setup-node@v4
with:
node-version: 22
cache: npm

- name: Install dependencies
run: npm ci

- name: Run headless test
uses: GabrielBB/xvfb-action@v1
uses: coactions/setup-xvfb@v1
env:
SAUCE_USERNAME: ${{ secrets.SAUCE_USERNAME }}
SAUCE_ACCESS_KEY: ${{ secrets.SAUCE_ACCESS_KEY }}
with:
run: yarn test:ci
run: npm run test:ci
7 changes: 7 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -28,6 +28,13 @@ If you only want to use the Mobiledoc-Kit runtime, for _rendering mobiledoc post

Mobiledoc is a deliberately simple and terse format, and you are encouraged to write your own renderer if you have other target output formats (e.g., a PDF renderer, an iOS Native Views Renderer, etc.).

Other 3rd Party Libraries:

| Environment | Library |
| ---------------- | ---------------------------------------------------------------------------- |
| Python | [mobiledoc-py](https://github.com/SuhJae/mobiledoc-py) |


## Demo

Try a demo at [bustle.github.io/mobiledoc-kit/demo](https://bustle.github.io/mobiledoc-kit/demo/).
Expand Down
73 changes: 34 additions & 39 deletions testem-ci.js
Original file line number Diff line number Diff line change
@@ -1,44 +1,39 @@
/* eslint-env node */
module.exports = {
"framework": "qunit",
"parallel": 5,
"disable_watching": true,
"timeout": 600,
"browser_start_timeout": 90,
"test_page": "tests/index.html?hidepassed",
"on_start": "./sauce_labs/saucie-connect.js",
"on_exit": "./sauce_labs/saucie-disconnect.js",
"port": 8080,
"launchers": {
"SL_Chrome_Current": {
"exe": "saucie",
"args": ["-b", "chrome", "-p", "Windows 10", "-v", "latest", "--no-connect", "-u"],
"protocol": "tap"
framework: 'qunit',
parallel: 5,
disable_watching: true,
timeout: 600,
browser_start_timeout: 90,
test_page: 'tests/index.html?hidepassed',
on_start: './sauce_labs/saucie-connect.js',
on_exit: './sauce_labs/saucie-disconnect.js',
port: 8080,
launchers: {
SL_Chrome_Current: {
exe: 'saucie',
args: ['-b', 'chrome', '-p', 'Windows 10', '-v', 'latest', '--no-connect', '-u'],
protocol: 'tap',
},
"SL_MS_Edge": {
"exe": "saucie",
"args": ["-b", "microsoftedge", "-v", "latest", "--no-connect", "-u"],
"protocol": "tap"
SL_MS_Edge: {
exe: 'saucie',
args: ['-b', 'microsoftedge', '-v', 'latest', '--no-connect', '-u'],
protocol: 'tap',
},
"SL_Safari_Current": {
"exe": "saucie",
"args": ["-b", "safari", "-v", "latest", "--no-connect", "-u"],
"protocol": "tap"
}
SL_Safari_Current: {
exe: 'saucie',
args: ['-b', 'safari', '-v', 'latest', '--no-connect', '-u'],
protocol: 'tap',
},
},
launch_in_ci: ['Chrome', 'Firefox', ...(process.env.SAUCE_ACCESS_KEY ? ['SL_Safari_Current', 'SL_MS_Edge'] : [])], // eslint-disable-line no-process-env
browser_args: {
Chrome: [
'--no-sandbox', // Fixes issue starting ChromeHeadless, see https://github.com/travis-ci/travis-ci/issues/9024
'--disable-gpu',
'--headless',
'--remote-debugging-port=9222',
'--window-size=1440,900',
],
},
"launch_in_ci": [
"Chrome",
"Firefox",
"SL_Safari_Current",
"SL_MS_Edge"
],
"browser_args": {
"Chrome": [
"--no-sandbox", // Fixes issue starting ChromeHeadless, see https://github.com/travis-ci/travis-ci/issues/9024
"--disable-gpu",
"--headless",
"--remote-debugging-port=9222",
"--window-size=1440,900"
]
}
};
}

0 comments on commit 9d3c4c4

Please sign in to comment.