From e7e8b7414a679162cf0828d8fd796963bfde3117 Mon Sep 17 00:00:00 2001 From: Kyle Florence Date: Wed, 17 Jan 2024 21:41:21 -0600 Subject: [PATCH] Add pull request workflow --- .github/workflows/pull-request.yml | 21 +++++++++++++++++++++ test/fixtures.js | 6 +++++- 2 files changed, 26 insertions(+), 1 deletion(-) create mode 100644 .github/workflows/pull-request.yml diff --git a/.github/workflows/pull-request.yml b/.github/workflows/pull-request.yml new file mode 100644 index 0000000..729183f --- /dev/null +++ b/.github/workflows/pull-request.yml @@ -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 diff --git a/test/fixtures.js b/test/fixtures.js index 8177d72..732d34b 100644 --- a/test/fixtures.js +++ b/test/fixtures.js @@ -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()