Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
64 changes: 64 additions & 0 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,64 @@
name: Test Cases
on:
push:
branches:
- master
pull_request:
branches:
- master
jobs:
test:
name: Test Cases
runs-on: ubuntu-latest
strategy:
matrix:
node-version: ['16.x']
steps:
- name: Checkout Repo
uses: actions/checkout@v3

- name: Use Node.js ${{ matrix['node-version'] }}
uses: actions/setup-node@v3
with:
node-version: ${{ matrix['node-version'] }}
# Enabling the cache reduces the "Install dependencies" step by 1m30,
# but you need package-lock.json in the repo.
# cache: 'npm'
# cache-dependency-path: 'package-lock.json'

- name: Install dependencies
run: npm install

- name: Test Cases Using Firefox
uses: GabrielBB/xvfb-action@v1
env:
TEST_ENV: ci
with:
run: npm run test:firefox -- --single-run

- name: Test Cases Using Chrome
uses: GabrielBB/xvfb-action@v1
env:
TEST_ENV: ci
with:
run: npm run test:chrome -- --single-run

# - name: Test node
# run: npm run test:node

- name: Check Lint
run: npm run lint

- name: Check Build
run: npm run build

- name: Check Build Minified
run: npm run dist

- name: Check Docs
run: npm run test:docs

- name: Upload coverage to Codecov
uses: codecov/codecov-action@v3
with:
directory: ./tests/coverage
47 changes: 0 additions & 47 deletions .travis.yml

This file was deleted.

1 change: 0 additions & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,6 @@
<p align="center"><b>A web framework for building virtual reality experiences.</b></p>

<p align="center">
<a href="https://travis-ci.org/aframevr/aframe"><img src="https://img.shields.io/travis/aframevr/aframe.svg?style=flat-square" alt="Build Status"></a>
<a href="https://codecov.io/gh/aframevr/aframe">
<img src="https://codecov.io/gh/aframevr/aframe/branch/master/graph/badge.svg" alt="Coverage Status">
</a>
Expand Down
3 changes: 0 additions & 3 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,6 @@
"scripts": {
"browserify": "browserify src/index.js -s 'AFRAME' -p browserify-derequire",
"build": "shx mkdir -p build/ && npm run browserify -- --debug -t [ envify --INSPECTOR_VERSION dev ] -o build/aframe.js",
"codecov": "codecov",
"dev": "npm run build && cross-env INSPECTOR_VERSION=dev node ./scripts/budo -t envify",
"dist": "node scripts/updateVersionLog.js && npm run dist:min && npm run dist:max",
"dist:max": "npm run browserify -s -- --debug | exorcist dist/aframe-master.js.map > dist/aframe-master.js",
Expand Down Expand Up @@ -60,7 +59,6 @@
"chai": "^4.3.6",
"chai-shallow-deep-equal": "^1.4.0",
"chalk": "^1.1.3",
"codecov": "^1.0.1",
"cross-env": "^5.0.1",
"envify": "^3.4.1",
"exorcist": "^0.4.0",
Expand All @@ -83,7 +81,6 @@
"markserv": "github:sukima/markserv#feature/fix-broken-websoketio-link",
"minifyify": "^7.3.3",
"mocha": "^10.0.0",
"mozilla-download": "^1.1.1",
"replace-in-file": "^2.5.3",
"semistandard": "^9.0.0",
"shelljs": "^0.7.7",
Expand Down