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:
Jon Koops
2021-09-06 15:57:55 +02:00
committed by GitHub
parent 90b5f5865a
commit 2f70965ae7
2 changed files with 17 additions and 3 deletions

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

View File

@ -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",