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

Update CI #793

Merged
merged 1 commit into from
Nov 14, 2024
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
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
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
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"
]
}
};
}
Loading