-
Notifications
You must be signed in to change notification settings - Fork 2
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
1 parent
d8dad2a
commit 14a894e
Showing
2 changed files
with
33 additions
and
2 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 |
---|---|---|
|
@@ -27,11 +27,20 @@ jobs: | |
key: npm-${{ hashFiles('package-lock.json') }} | ||
restore-keys: npm- | ||
|
||
|
||
- name: Install Dependencies | ||
run: npm i | ||
if: steps.npm-cache.outputs.cache-hit != 'true' | ||
run: | | ||
npm i | ||
npm run build --if-present | ||
env: | ||
CI: true | ||
|
||
- name: Setup Puppeteer Chrome | ||
uses: MauFournier/[email protected] | ||
|
||
- name: Run end to end tests | ||
run: npm run test-e2e | ||
run: | | ||
xvfb-run --auto-servernum --server-args='-screen 0 1024x768x24' npm run test-e2e | ||
env: | ||
CI: true |
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,22 @@ | ||
module.exports = { | ||
launch: { | ||
headless: process.env.CI === "true", | ||
ignoreDefaultArgs: ["--disable-extensions"], | ||
args: ["--no-sandbox"], | ||
executablePath: "chrome.exe" | ||
} | ||
}; | ||
|
||
module.exports = { | ||
launch: {}, | ||
server: { | ||
command: "npm run serve", | ||
port: 9000, | ||
launchTimeout: 180000 | ||
} | ||
}; | ||
|
||
module.exports = { | ||
preset: "jest-puppeteer" | ||
// The rest of your file... | ||
}; |