-
-
Notifications
You must be signed in to change notification settings - Fork 0
38 lines (31 loc) · 893 Bytes
/
npm-ci.yml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
# This workflow installs dependencies, runs tests and scans Code Quality using SonarCloud.
# Runs whenever a commit is pushed to the master branch.
name: CI
on:
push:
branches:
- master
jobs:
TestAndScan:
runs-on: ubuntu-latest
steps:
- id: codeCheckout
name: Code Checkout
uses: actions/checkout@v2
- id: nodeSetup
name: Node.js Setup
uses: actions/setup-node@v1
with:
node-version: 12
- id: dependenciesInstallation
name: Dependencies Installation
run: npm install
- id: testing
name: Testing
run: npm test
- id: sonarScan
name: Code Quality Scan
uses: SonarSource/[email protected]
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
SONAR_TOKEN: ${{ secrets.SONAR_TOKEN }}