1
0
mirror of https://github.com/lana-k/sqliteviz.git synced 2026-02-04 15:38:55 +08:00
Files
sqliteviz/.github/workflows/test.yml
2025-12-24 21:36:47 +01:00

48 lines
1.0 KiB
YAML

name: Run tests
on:
workflow_dispatch:
push:
branches:
- 'master'
pull_request:
branches:
- 'master'
jobs:
test:
name: Run tests
runs-on: ubuntu-24.04
steps:
- uses: actions/checkout@v2
- name: Use Node.js
uses: actions/setup-node@v1
with:
node-version: 18.x
- name: Install browsers
run: |
export DEBIAN_FRONTEND=noninteractive
sudo add-apt-repository -y ppa:mozillateam/ppa
sudo apt-get update
sudo apt-get install -y \
chromium-browser \
firefox-esr \
libgl1 \
libgl1-mesa-dri \
libegl1 \
mesa-utils
- name: Force software rendering
run: echo "LIBGL_ALWAYS_SOFTWARE=1" >> $GITHUB_ENV
- name: Update npm
run: npm install -g npm@10
- name: Install the project
run: npm install
- name: Run lint
run: npm run lint -- --no-fix
- name: Run karma tests
run: npm run test