mirror of
https://github.com/CesiumGS/obj2gltf.git
synced 2024-11-23 08:34:14 -05:00
Migrate to GitHub Actions
* Add simple build.yml for GitHub Actions * Delete travis.yml * Remove coveralls, we didn't really use it * No need to run coverage in CI
This commit is contained in:
parent
a1709ac1fa
commit
9a07a65cd0
22
.github/workflows/build.yml
vendored
Normal file
22
.github/workflows/build.yml
vendored
Normal file
@ -0,0 +1,22 @@
|
|||||||
|
run-name: build
|
||||||
|
on:
|
||||||
|
push:
|
||||||
|
concurrency:
|
||||||
|
group: ${{ github.ref }}
|
||||||
|
cancel-in-progress: true
|
||||||
|
jobs:
|
||||||
|
build:
|
||||||
|
runs-on: ubuntu-latest
|
||||||
|
strategy:
|
||||||
|
matrix:
|
||||||
|
node: [ 16, 18 ]
|
||||||
|
name: Node ${{ matrix.node }}
|
||||||
|
steps:
|
||||||
|
- uses: actions/checkout@v3
|
||||||
|
- uses: actions/setup-node@v3
|
||||||
|
with:
|
||||||
|
node-version: ${{ matrix.node }}
|
||||||
|
- run: npm install
|
||||||
|
- run: npm run eslint
|
||||||
|
- run: npm run prettier-check
|
||||||
|
- run: npm run test -- --failTaskOnError --suppressPassed
|
12
.travis.yml
12
.travis.yml
@ -1,12 +0,0 @@
|
|||||||
language: node_js
|
|
||||||
node_js:
|
|
||||||
- "16"
|
|
||||||
script:
|
|
||||||
- npm run eslint
|
|
||||||
- npm run prettier-check
|
|
||||||
- npm run test -- --failTaskOnError --suppressPassed
|
|
||||||
|
|
||||||
after_success:
|
|
||||||
## We only need to run coveralls for one node version (doesn't matter which one).
|
|
||||||
## We also ignore publishing failures, since restarting an existing travis build would otherwise break.
|
|
||||||
- npm run coverage && npm run coveralls;
|
|
@ -12,7 +12,7 @@
|
|||||||
"license": [
|
"license": [
|
||||||
"Apache-2.0"
|
"Apache-2.0"
|
||||||
],
|
],
|
||||||
"version": "1.102.0",
|
"version": "1.109.0",
|
||||||
"url": "https://www.npmjs.com/package/cesium"
|
"url": "https://www.npmjs.com/package/cesium"
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
@ -20,7 +20,7 @@
|
|||||||
"license": [
|
"license": [
|
||||||
"MIT"
|
"MIT"
|
||||||
],
|
],
|
||||||
"version": "11.1.0",
|
"version": "11.1.1",
|
||||||
"url": "https://www.npmjs.com/package/fs-extra"
|
"url": "https://www.npmjs.com/package/fs-extra"
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
@ -44,7 +44,7 @@
|
|||||||
"license": [
|
"license": [
|
||||||
"MIT"
|
"MIT"
|
||||||
],
|
],
|
||||||
"version": "6.0.0",
|
"version": "7.0.0",
|
||||||
"url": "https://www.npmjs.com/package/pngjs"
|
"url": "https://www.npmjs.com/package/pngjs"
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
@ -52,7 +52,7 @@
|
|||||||
"license": [
|
"license": [
|
||||||
"MIT"
|
"MIT"
|
||||||
],
|
],
|
||||||
"version": "17.6.2",
|
"version": "17.7.2",
|
||||||
"url": "https://www.npmjs.com/package/yargs"
|
"url": "https://www.npmjs.com/package/yargs"
|
||||||
}
|
}
|
||||||
]
|
]
|
@ -36,7 +36,6 @@
|
|||||||
},
|
},
|
||||||
"devDependencies": {
|
"devDependencies": {
|
||||||
"cloc": "^2.8.0",
|
"cloc": "^2.8.0",
|
||||||
"coveralls": "^3.1.1",
|
|
||||||
"eslint": "^8.0.1",
|
"eslint": "^8.0.1",
|
||||||
"eslint-config-cesium": "^9.0.0",
|
"eslint-config-cesium": "^9.0.0",
|
||||||
"eslint-config-prettier": "^8.3.0",
|
"eslint-config-prettier": "^8.3.0",
|
||||||
@ -58,7 +57,6 @@
|
|||||||
"test": "gulp test",
|
"test": "gulp test",
|
||||||
"test-watch": "gulp test-watch",
|
"test-watch": "gulp test-watch",
|
||||||
"coverage": "gulp coverage",
|
"coverage": "gulp coverage",
|
||||||
"coveralls": "cat ./coverage/lcov.info | ./node_modules/.bin/coveralls",
|
|
||||||
"cloc": "gulp cloc",
|
"cloc": "gulp cloc",
|
||||||
"prettier": "prettier --write \"**/*\"",
|
"prettier": "prettier --write \"**/*\"",
|
||||||
"prettier-check": "prettier --check \"**/*\"",
|
"prettier-check": "prettier --check \"**/*\"",
|
||||||
|
Loading…
Reference in New Issue
Block a user