Skip to content

Commit

Permalink
Merge pull request #4 from webbierahul/github-actions
Browse files Browse the repository at this point in the history
ci yaml config update
  • Loading branch information
webbierahul authored Aug 27, 2024
2 parents 84edf02 + 088cf10 commit 6cadd9f
Show file tree
Hide file tree
Showing 3 changed files with 33 additions and 2 deletions.
2 changes: 1 addition & 1 deletion .github/workflows/ci.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@ jobs:
- name: Install
run: npm install
- name: Test
run: npm run wdio
run: HEADLESS=Y npm run wdio
- uses: actions/upload-artifact@v1
if: failure()
with:
Expand Down
23 changes: 23 additions & 0 deletions wdio.conf.ts
Original file line number Diff line number Diff line change
@@ -1,4 +1,7 @@
import type { Options } from "@wdio/types";

const { HEADLESS: headless } = process.env;

export const config: Options.Testrunner = {
//
// ====================
Expand Down Expand Up @@ -59,6 +62,26 @@ export const config: Options.Testrunner = {
capabilities: [
{
browserName: "chrome",
"goog:chromeOptions": {
args:
headless.toLocaleLowerCase() === "y"
? [
"--headless=new",
"--incognito",
"--disable-extensions",
"--disable-gpu",
"--no-sandbox",
"--disable-dev-shm-usage",
]
: [
"--incognito",
"--disable-extensions",
"--disable-gpu",
"--no-sandbox",
"--disable-dev-shm-usage",
],
},
acceptInsecureCerts: true,
},
],

Expand Down
10 changes: 9 additions & 1 deletion wdio.local.conf.ts
Original file line number Diff line number Diff line change
@@ -1,12 +1,20 @@
import { config as sharedConfig } from "./wdio.shared.conf.ts";
import {ReportGenerator, HtmlReporter} from 'wdio-html-nice-reporter';
const {
PLATFORM: platform,
ENVIRONMENT: env,
WL: wl,
HEADLESS: headless,
TEAM: team
} = process.env;

export const config: WebdriverIO.Config = {
...sharedConfig,
...{
capabilities: [
{
browserName: "chrome",
browserName: "chrome",

},
],
},
Expand Down

0 comments on commit 6cadd9f

Please sign in to comment.