Skip to content

Commit

Permalink
Utilized xvfb to run chrome browser
Browse files Browse the repository at this point in the history
  • Loading branch information
rmathew1011 committed Feb 2, 2021
1 parent 393e8e7 commit 4d62fea
Showing 1 changed file with 7 additions and 11 deletions.
18 changes: 7 additions & 11 deletions .github/workflows/build.yml
Original file line number Diff line number Diff line change
Expand Up @@ -3,19 +3,22 @@ name: Build
on: [ push, pull_request, workflow_dispatch ]

jobs:
node:
build:
runs-on: ubuntu-latest

steps:
- uses: actions/checkout@v2

- name: "Install Chrome Drivers"
run: sudo apt-get install xvfb

- name: "Node Cache"
uses: actions/cache@v2
with:
path: ~/.npm
key: ${{ runner.os }}-cache-node-${{ hashFiles('**/package.json', '**/package-lock.json') }}

- name: "Node Cache Modules"
- name: "Node Modules Cache"
uses: actions/cache@v2
with:
path: node_modules
Expand All @@ -29,19 +32,12 @@ jobs:
- name: "Install Node"
run: npm install

- name: "Starting Service"
run: |
npm start > /dev/null &
npm run update-webdriver
sleep 1 # give server time to start
- name: "Running Tests"
run: npm run test-ci

- name: "Send to Coveralls (build node-${{ github.run_number }})"
- name: "Coverage Report"
uses: MikeEdgar/github-action@raw_coverage_file
with:
github-token: ${{ secrets.github_token }}
path-to-file: './coverage/coveralls.json'
coverage-format: raw

coverage-format: raw

0 comments on commit 4d62fea

Please sign in to comment.