mirror of
https://github.com/lana-k/sqliteviz.git
synced 2025-12-06 10:08:52 +08:00
* Build SQLite 3.41.0 * Update pivot_vtab * Add Pearson correlation coefficient function extension, build * Add an easy way to running test locally without Nodejs * Use RSS sum to pick top2 processes for the report * Try previous Ubuntu LTS as a workaround for Firefox worker not starting
38 lines
720 B
YAML
38 lines
720 B
YAML
name: Run tests
|
|
on:
|
|
workflow_dispatch:
|
|
push:
|
|
branches:
|
|
- 'master'
|
|
pull_request:
|
|
branches:
|
|
- 'master'
|
|
|
|
jobs:
|
|
test:
|
|
name: Run tests
|
|
runs-on: ubuntu-20.04
|
|
steps:
|
|
- uses: actions/checkout@v2
|
|
- name: Use Node.js
|
|
uses: actions/setup-node@v1
|
|
with:
|
|
node-version: 10.x
|
|
- name: Install browsers
|
|
run: |
|
|
export DEBIAN_FRONTEND=noninteractive
|
|
sudo apt-get update
|
|
sudo apt-get install -y chromium-browser firefox
|
|
|
|
- name: Update npm
|
|
run: npm install -g npm@7
|
|
|
|
- name: Install the project
|
|
run: npm install
|
|
|
|
- name: Run lint
|
|
run: npm run lint -- --no-fix
|
|
|
|
- name: Run karma tests
|
|
run: npm run test
|