Skip to content

Commit 72fffa6

Browse files
fix(ci): stablize Cypress Chrome runs on GitHub Actions by moving Chrome flags to config
1 parent 9b2c76d commit 72fffa6

File tree

2 files changed

+4
-2
lines changed

2 files changed

+4
-2
lines changed

.github/workflows/integration.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -59,7 +59,7 @@ jobs:
5959

6060
- name: Run integration test (CRA)
6161
run: |
62-
npx start-server-and-test start:api 3001 start:cra http-get://127.0.0.1:3000 "npx wait-on http://127.0.0.1:3000 && curl -I http://127.0.0.1:3000 && npm run cypress:run -- --browser chrome --headless"
62+
npx start-server-and-test start:api 3001 start:cra http-get://127.0.0.1:3000 "npm run cypress:run -- --browser chrome --headless"
6363
env:
6464
CI: true
6565

cypress.config.js

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -17,10 +17,12 @@ module.exports = defineConfig({
1717
launchOptions.args.push('--no-sandbox')
1818
launchOptions.args.push('--disable-gpu')
1919
launchOptions.args.push('--disable-dev-shm-usage')
20-
launchOptions.args.push('--disable-software-rasterizer')
20+
launchOptions.args.push('--disable-setuid-sandbox')
21+
launchOptions.args.push('--disable-web-security')
2122
}
2223
return launchOptions
2324
})
25+
return config
2426
},
2527
baseUrl: 'http://localhost:3000',
2628
supportFile: false,

0 commit comments

Comments
 (0)