forked from mrdoob/three.js
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request mrdoob#3 from mrdoob/dev
update
- Loading branch information
Showing
1,952 changed files
with
52,451 additions
and
31,669 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,117 @@ | ||
name: CI | ||
|
||
on: | ||
pull_request: | ||
paths-ignore: | ||
- 'build/**' | ||
- 'docs/**' | ||
- 'files/**' | ||
push: | ||
paths-ignore: | ||
- 'build/**' | ||
- 'docs/**' | ||
- 'files/**' | ||
|
||
jobs: | ||
|
||
lint: | ||
name: "Linting" | ||
runs-on: ubuntu-latest | ||
steps: | ||
- name: Git checkout | ||
uses: actions/checkout@v2 | ||
- name: Install node | ||
uses: actions/setup-node@v1 | ||
with: | ||
node-version: '10.x' | ||
- name: Restore cache | ||
uses: actions/cache@v1 | ||
env: | ||
cache-name: cache-node-modules | ||
with: | ||
path: ~/.npm | ||
key: ${{ runner.os }}-ci-${{ env.cache-name }}-${{ hashFiles('**/package-lock.json') }} | ||
restore-keys: ${{ runner.os }}-ci-${{ env.cache-name }}- | ||
- name: Install packages | ||
run: npm ci | ||
|
||
- name: === Linting === | ||
run: npm run test-lint | ||
|
||
unit: | ||
name: "Unit testing" | ||
runs-on: ubuntu-latest | ||
steps: | ||
- name: Git checkout | ||
uses: actions/checkout@v2 | ||
- name: Install node | ||
uses: actions/setup-node@v1 | ||
with: | ||
node-version: '10.x' | ||
- name: Restore cache | ||
uses: actions/cache@v1 | ||
env: | ||
cache-name: cache-node-modules | ||
with: | ||
path: ~/.npm | ||
key: ${{ runner.os }}-ci-${{ env.cache-name }}-${{ hashFiles('**/package-lock.json') }} | ||
restore-keys: ${{ runner.os }}-ci-${{ env.cache-name }}- | ||
- name: Install packages | ||
run: npm ci && npm run build-test | ||
|
||
- name: === Unit testing === | ||
run: npm run test-unit | ||
|
||
e2e: | ||
name: "E2E testing" | ||
runs-on: ubuntu-latest | ||
strategy: | ||
matrix: | ||
CI: [ 0, 1, 2, 3 ] | ||
env: | ||
CI: ${{ matrix.CI }} | ||
FORCE_COLOR: 1 | ||
steps: | ||
- name: Git checkout | ||
uses: actions/checkout@v2 | ||
- name: Install node | ||
uses: actions/setup-node@v1 | ||
with: | ||
node-version: '10.x' | ||
- name: Restore cache | ||
uses: actions/cache@v1 | ||
env: | ||
cache-name: cache-node-modules | ||
with: | ||
path: ~/.npm | ||
key: ${{ runner.os }}-ci-${{ env.cache-name }}-${{ hashFiles('**/package-lock.json') }} | ||
restore-keys: ${{ runner.os }}-ci-${{ env.cache-name }}- | ||
- name: Install packages | ||
run: npm ci && sudo apt-get install xvfb && npm run build | ||
|
||
- name: === E2E testing === | ||
run: xvfb-run --auto-servernum npm run test-e2e | ||
|
||
e2e-cov: | ||
name: "Ready for release" | ||
runs-on: ubuntu-latest | ||
steps: | ||
- name: Git checkout | ||
uses: actions/checkout@v2 | ||
- name: Install node | ||
uses: actions/setup-node@v1 | ||
with: | ||
node-version: '10.x' | ||
- name: Restore cache | ||
uses: actions/cache@v1 | ||
env: | ||
cache-name: cache-node-modules | ||
with: | ||
path: ~/.npm | ||
key: ${{ runner.os }}-ci-${{ env.cache-name }}-${{ hashFiles('**/package-lock.json') }} | ||
restore-keys: ${{ runner.os }}-ci-${{ env.cache-name }}- | ||
- name: Install packages | ||
run: npm ci | ||
|
||
- name: === Ready for release === | ||
run: npm run test-e2e-cov |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -7,4 +7,4 @@ node_modules | |
npm-debug.log | ||
.jshintrc | ||
.vs/ | ||
test/unit/three.*.unit.js | ||
test/unit/three.*.unit.js |
This file was deleted.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.