Skip to content

Commit

Permalink
try
Browse files Browse the repository at this point in the history
  • Loading branch information
vltansky committed Jul 11, 2024
1 parent 8491e40 commit d7868cf
Show file tree
Hide file tree
Showing 3 changed files with 11,679 additions and 20 deletions.
24 changes: 5 additions & 19 deletions .github/workflows/test.yml
Original file line number Diff line number Diff line change
Expand Up @@ -5,38 +5,24 @@ on:
branches: [master]
jobs:
ci:
runs-on: ${{ matrix.os }}
strategy:
fail-fast: false
matrix:
node-version: [18.x, 20.x]
os: [ubuntu-latest, windows-latest, macos-latest]
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
with:
submodules: true
- uses: actions/setup-node@v4
with:
node-version: ${{ matrix.node-version }}
node-version: '20.x'
cache: 'npm'
- name: Install dependencies on Ubuntu
if: startsWith(matrix.os, 'ubuntu')
- name: Install dependencies
run: sudo apt-get install -y build-essential libgl1-mesa-dri libglapi-mesa \
libglew-dev libglu1-mesa-dev libosmesa6 \
libxi-dev mesa-utils pkg-config
- name: Install node dependencies
run: npm ci
- name: Build project
run: npm run build
- name: Run tests on Ubuntu
if: startsWith(matrix.os, 'ubuntu')
- name: Run tests
run: xvfb-run npm test:unit
- name: Run tests on non-Ubuntu
if: "!startsWith(matrix.os, 'ubuntu')"
run: npm test:unit
- name: Run E2e tests on Ubuntu
if: startsWith(matrix.os, 'ubuntu')
- name: Run E2e tests
run: xvfb-run npm test:e2e
- name: Run E2e tests on non-Ubuntu
if: "!startsWith(matrix.os, 'ubuntu')"
run: npm test:e2e
1 change: 0 additions & 1 deletion .gitignore
Original file line number Diff line number Diff line change
@@ -1,5 +1,4 @@
node_modules/
package-lock.json

test/src/*.js

Expand Down
Loading

0 comments on commit d7868cf

Please sign in to comment.