Unverified Commit 4f2628ec authored by Carsten Heidmann's avatar Carsten Heidmann Committed by GitHub
Browse files

Merge pull request #8 from femiadeyemi/pull-8/package/script/sonarqube-scanner

ci: add build and move sonarqube test
parents cec13965 308c0954
name: Build & Sonarqube
on:
push:
branches: [ master ]
jobs:
build:
runs-on: ubuntu-latest
strategy:
matrix:
node-version: [10.x, 12.x, 14.x]
steps:
- uses: actions/checkout@v2
- name: Use Node.js ${{ matrix.node-version }}
uses: actions/setup-node@v1
with:
node-version: ${{ matrix.node-version }}
- run: npm ci
- run: npm run build --if-present
- run: npm test
- run: npm run test:sonarqube
......@@ -9,7 +9,7 @@
"test": "karma start",
"test:coverage": "karma start --coverage",
"test:watch": "karma start --auto-watch=true --single-run=false",
"posttest": "node ci-analysis.js",
"test:sonarqube": "node ci-analysis.js",
"build": "rimraf target && rollup -c rollup.config.js",
"start": "es-dev-server --app-index index.html --node-resolve --open --watch",
"start:build": "npm run build && es-dev-server --root-dir target --app-index index.html --open --compatibility none"
......
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment