Skip to content

Commit

Permalink
Add pull request workflow
Browse files Browse the repository at this point in the history
  • Loading branch information
kflorence committed Jan 18, 2024
1 parent 85fcefa commit e7e8b74
Show file tree
Hide file tree
Showing 2 changed files with 26 additions and 1 deletion.
21 changes: 21 additions & 0 deletions .github/workflows/pull-request.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,21 @@
name: Test
on:
pull_request:
branches:
- main
jobs:
test:
runs-on: ubuntu-latest
steps:
- name: Checkout
uses: actions/checkout@v1
- name: Setup Node
uses: actions/setup-node@v1
with:
node-version: 20
- name: Install dependencies
run: npm install
- name: Run server
run: npm start &
- name: Run tests
run: npm test
6 changes: 5 additions & 1 deletion test/fixtures.js
Original file line number Diff line number Diff line change
Expand Up @@ -24,8 +24,12 @@ class PuzzleFixture {
async before () {
const options = new chrome.Options()
options.addArguments(
'--disable-dev-shm-usage',
'--disable-extensions',
'--disable-gpu',
'--headless=new',
'--window-size=1920,1080'
'--ignore-certificate-errors',
'--window-size=768,1024'
)

this.driver = await new Builder().forBrowser('chrome').setChromeOptions(options).build()
Expand Down

0 comments on commit e7e8b74

Please sign in to comment.