Merge pull request #292 from CesiumGS/github-actions

Migrate to GitHub Actions
This commit is contained in:
Matthew Amato 2023-09-19 19:27:59 -04:00 committed by GitHub
commit dc2500a65c
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
4 changed files with 27 additions and 19 deletions

22
.github/workflows/build.yml vendored Normal file
View 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

View File

@ -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;

View File

@ -12,7 +12,7 @@
"license": [
"Apache-2.0"
],
"version": "1.102.0",
"version": "1.109.0",
"url": "https://www.npmjs.com/package/cesium"
},
{
@ -20,7 +20,7 @@
"license": [
"MIT"
],
"version": "11.1.0",
"version": "11.1.1",
"url": "https://www.npmjs.com/package/fs-extra"
},
{
@ -44,7 +44,7 @@
"license": [
"MIT"
],
"version": "6.0.0",
"version": "7.0.0",
"url": "https://www.npmjs.com/package/pngjs"
},
{
@ -52,7 +52,7 @@
"license": [
"MIT"
],
"version": "17.6.2",
"version": "17.7.2",
"url": "https://www.npmjs.com/package/yargs"
}
]

View File

@ -36,7 +36,6 @@
},
"devDependencies": {
"cloc": "^2.8.0",
"coveralls": "^3.1.1",
"eslint": "^8.0.1",
"eslint-config-cesium": "^9.0.0",
"eslint-config-prettier": "^8.3.0",
@ -58,7 +57,6 @@
"test": "gulp test",
"test-watch": "gulp test-watch",
"coverage": "gulp coverage",
"coveralls": "cat ./coverage/lcov.info | ./node_modules/.bin/coveralls",
"cloc": "gulp cloc",
"prettier": "prettier --write \"**/*\"",
"prettier-check": "prettier --check \"**/*\"",
@ -68,4 +66,4 @@
"bin": {
"obj2gltf": "./bin/obj2gltf.js"
}
}
}