Skip to content

test updates

test updates #208

Workflow file for this run

name: Node CI
on: [push, pull_request]
jobs:
build:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v2
- name: Use Node.js
uses: actions/setup-node@v2
with:
node-version: '18.19.0'
- name: Cache Node.js modules
uses: actions/cache@v2
with:
path: ~/.npm
key: ${{ runner.OS }}-node-${{ hashFiles('**/package-lock.json') }}
restore-keys: |
${{ runner.OS }}-node-
${{ runner.OS }}-
- name: Install dependencies
run: yarn
# - name: Setup build environment
# run: |
# sudo apt-get update
# sudo apt-get install -y libxkbfile-dev pkg-config libsecret-1-dev libxss1 dbus xvfb libgtk-3-0 libnss3 libasound2 libgbm-dev
# sudo cp test/xvfb.init /etc/init.d/xvfb
# sudo chmod +x /etc/init.d/xvfb
# sudo update-rc.d xvfb defaults
# sudo service xvfb start
# sudo service dbus restart
# export $(dbus-launch)
- name: Setup xvfb
run: xvfb-run -a yarn run vscode:prepublish
- name: Run xvfb test
run: xvfb-run -a yarn test
# - name: Build
# run: yarn run vscode:prepublish
# - name: Test
# run:
- name: Prettier
run: yarn run prettier:check
- name: Lint
run: yarn run lint