mirror of
https://github.com/Leaflet/Leaflet.git
synced 2025-08-20 14:34:38 +00:00
Run CI on Github actions (#7654)
* Run CI on Github actions * Run on any push event * Run lint as a seperate task
This commit is contained in:
16
.github/workflows/main.yml
vendored
Normal file
16
.github/workflows/main.yml
vendored
Normal file
@ -0,0 +1,16 @@
|
||||
name: CI
|
||||
on: push
|
||||
jobs:
|
||||
ci:
|
||||
runs-on: ubuntu-latest
|
||||
steps:
|
||||
- uses: actions/checkout@v2
|
||||
- uses: actions/setup-node@v2
|
||||
with:
|
||||
node-version: 16
|
||||
check-latest: true
|
||||
cache: npm
|
||||
- run: npm ci
|
||||
- run: npm run lint
|
||||
- run: npm test -- -- --browsers PhantomJSCustom,Chrome1280x1024,FirefoxPointer,FirefoxTouch,FirefoxPointerTouch --reporters
|
||||
- run: npm run build
|
@ -39,9 +39,7 @@
|
||||
],
|
||||
"scripts": {
|
||||
"docs": "node ./build/docs.js",
|
||||
"pretest": "npm run lint",
|
||||
"test": "npm run test-nolint",
|
||||
"test-nolint": "karma start ./spec/karma.conf.js",
|
||||
"test": "karma start ./spec/karma.conf.js",
|
||||
"build": "npm run rollup && npm run uglify",
|
||||
"release": "./build/publish.sh",
|
||||
"lint": "eslint src spec/suites docs/docs/js",
|
||||
|
Reference in New Issue
Block a user