diff --git a/.github/workflows/build.yml b/.github/workflows/build.yml new file mode 100644 index 0000000..2132d6f --- /dev/null +++ b/.github/workflows/build.yml @@ -0,0 +1,27 @@ +name: Build + +on: + push: + branches: [ master, dev ] + pull_request: + branches: [ master, dev ] + +jobs: + build: + + runs-on: ${{ matrix.os-type }} + + strategy: + matrix: + node-version: [12.x, 14.x, 16.x] + os-type: [windows-latest, macos-latest, ubuntu-latest] + + steps: + - uses: actions/checkout@v2 + - name: Setup node.js ${{ matrix.node-version }} + uses: actions/setup-node@v2 + with: + node-version: ${{ matrix.node-version }} + - run: npm install + - run: npm run build + - run: npm run test diff --git a/.travis.yml b/.travis.yml deleted file mode 100644 index f191a77..0000000 --- a/.travis.yml +++ /dev/null @@ -1,15 +0,0 @@ -language: node_js - -os: - - osx - - linux - -node_js: - - "15" - -install: - - npm install - -script: - - npm run build - - npm run test diff --git a/README.md b/README.md index 2896a46..279619b 100644 --- a/README.md +++ b/README.md @@ -3,7 +3,7 @@ Online 3D Viewer (https://3dviewer.net) is a free and open source web solution to visualize and explore 3D models right in your browser. This repository contains the source code of the website and the library behind it. [![Build status](https://ci.appveyor.com/api/projects/status/exypq43a8kjby5n0?svg=true)](https://ci.appveyor.com/project/kovacsv/online3dviewer) -[![Build Status](https://travis-ci.com/kovacsv/Online3DViewer.svg?branch=master)](https://travis-ci.com/kovacsv/Online3DViewer) +[![Build status](https://github.com/kovacsv/Online3DViewer/actions/workflows/build.yml/badge.svg)](https://github.com/kovacsv/Online3DViewer/actions/workflows/build.yml) [![Language grade: JavaScript](https://img.shields.io/lgtm/grade/javascript/g/kovacsv/Online3DViewer.svg?logo=lgtm&logoWidth=18)](https://lgtm.com/projects/g/kovacsv/Online3DViewer/context:javascript) ![Start Page](website/assets/images/3dviewer_net_start_page.png?raw=true) diff --git a/sandbox/embed_iframe.html b/sandbox/embed_iframe.html index 25ed1d8..81b8c6d 100644 --- a/sandbox/embed_iframe.html +++ b/sandbox/embed_iframe.html @@ -34,7 +34,7 @@ style="border:1px solid #eeeeee;"> diff --git a/sandbox/embed_selfhost_multiple.html b/sandbox/embed_selfhost_multiple.html index 86c67bc..7bcc483 100644 --- a/sandbox/embed_selfhost_multiple.html +++ b/sandbox/embed_selfhost_multiple.html @@ -70,7 +70,9 @@