0
0
Fork 0
mirror of https://github.com/liabru/matter-js.git synced 2024-11-30 10:20:52 -05:00

Merge branch 'master' into timing-improve

* master:
  increase overlap test updates
  added readme note about vue watchers
  increase test timeout
  remove travis config
  added ci workflow action
This commit is contained in:
liabru 2022-08-06 09:52:08 +01:00
commit 1b4e288488
4 changed files with 38 additions and 16 deletions

30
.github/workflows/ci.yml vendored Normal file
View file

@ -0,0 +1,30 @@
name: CI
on:
push:
branches: [ master ]
pull_request:
branches: [ master ]
jobs:
build:
runs-on: ubuntu-latest
strategy:
matrix:
node-version: [12.x, 14.x, 16.x]
steps:
- uses: actions/checkout@v2
- name: Use Node.js ${{ matrix.node-version }}
uses: actions/setup-node@v2
with:
node-version: ${{ matrix.node-version }}
cache: 'npm'
- run: npm ci
- run: npm run lint
- run: npm run benchmark
- run: npm run test
- run: npm run build
- run: npm run build-demo

View file

@ -1,12 +0,0 @@
language: node_js
sudo: false
node_js:
- "node"
install:
- npm ci
script:
- npm run lint
- npm run benchmark
- npm run test
- npm run build
- npm run build-demo

View file

@ -124,9 +124,13 @@ Alternatively you can download a [stable release](https://github.com/liabru/matt
<script src="matter.js" type="text/javascript"></script>
### Webpack
### Performance with other tools (e.g. Webpack, Vue etc.)
Some [webpack](https://webpack.js.org/) configs including the default may impact your project's performance during development, for a solution see [issue](https://github.com/liabru/matter-js/issues/1001).
Bundlers and frameworks may reduce real-time performance when using their default configs, especially in development modes.
When using [Webpack](https://webpack.js.org/), the default sourcemap config can have a large impact, for a solution see [issue](https://github.com/liabru/matter-js/issues/1001).
When using [Vue.js](https://vuejs.org/), watchers can have a large impact, for a solution see [issue](https://github.com/liabru/matter-js/issues/1001#issuecomment-998911435).
### Usage

View file

@ -1,7 +1,7 @@
/* eslint-env es6 */
"use strict";
jest.setTimeout(30 * 1000);
jest.setTimeout(2 * 60 * 1000);
const fs = require('fs');
@ -41,7 +41,7 @@ const captureExamples = async useDev => {
const overlapRuns = await Promise.all(examples.map(name => multiThreadWorker.runExample({
name,
useDev,
updates: 1,
updates: 2,
stableSort: true,
jitter: excludeJitter.includes(name) ? 0 : 1e-10
})));