-
Notifications
You must be signed in to change notification settings - Fork 1
38 lines (38 loc) · 1.21 KB
/
push.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
on: push
name: CI
jobs:
build:
name: npm build
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v3
- uses: actions/setup-node@v2
with:
node-version: '14.x'
- run: npm ci
- run: npm test
- run: npm run test:mutate
env:
STRYKER_DASHBOARD_API_KEY: ${{ secrets.STRYKER_DASHBOARD_API_KEY }}
- run: npm run coveralls
env:
COVERALLS_REPO_TOKEN: ${{ secrets.COVERALLS_REPO_TOKEN }}
COVERALLS_SERVICE_NAME: Github Actions main.workflow
- run: npm run prettier:check
- run: npm start
- name: SonarCloud Scan
uses: sonarsource/sonarcloud-github-action@master
with:
args: >
-Dsonar.organization=doppelganger9-github
-Dsonar.projectKey=doppelganger9_fruit-basket
-Dsonar.exclusions=node_modules/**/*,coverage/**/*,reports/**/*,**/*.config.js,**/*.conf.js
-Dsonar.javascript.lcov.reportPaths=coverage/lcov.info
-Dsonar.language=js
-Dsonar.tests=.
-Dsonar.test.inclusions=**/*.spec.js
-Dsonar.sources=.
-Dsonar.verbose=true
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
SONAR_TOKEN: ${{ secrets.SONAR_TOKEN }}