chore(deps): update dependency mocha to v10 #269
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
name: Build and test | |
on: | |
push: | |
branches: [master] | |
pull_request: | |
branches: [master] | |
env: | |
DISPLAY: :99.0 | |
jobs: | |
build: | |
runs-on: ubuntu-latest | |
strategy: | |
matrix: | |
browser: ['ChromeCi', 'Firefox'] | |
node-version: [16.x] | |
steps: | |
- uses: actions/checkout@v2 | |
- name: Use Node.js ${{ matrix.node-version }} | |
uses: actions/setup-node@v1 | |
with: | |
node-version: ${{ matrix.node-version }} | |
- name: Setup firefox | |
if: ${{ matrix.browser == 'Firefox' }} | |
uses: browser-actions/setup-firefox@latest | |
with: | |
firefox-version: 'latest' | |
- name: Setup xvfb | |
run: | | |
sudo apt-get install xvfb | |
Xvfb $DISPLAY -screen 0 1024x768x24 > /dev/null 2>&1 & | |
- run: yarn install --frozen-lockfile | |
- env: | |
BROWSER: ${{ matrix.browser }} | |
run: yarn test --coverage | |
- run: node_modules/.bin/codecov |