-
Notifications
You must be signed in to change notification settings - Fork 7
33 lines (33 loc) · 1.05 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
on: push
name: Test and report
jobs:
test:
name: Test
runs-on: ubuntu-latest
env:
SKIP_IIDY_AWS_TEST: yes
steps:
- uses: actions/checkout@master
- uses: actions/cache@v1
with:
path: ~/.npm
key: ${{ runner.os }}-node-${{ hashFiles('**/package-lock.json') }}
restore-keys: |
${{ runner.os }}-build-${{ env.cache-name }}-
${{ runner.os }}-build-
${{ runner.os }}-
- uses: actions/setup-node@v1
with:
node-version: '14.x'
- run: npm ci
- run: npm run coverage
- name: Fix Code Coverage Paths
# https://community.sonarsource.com/t/code-coverage-doesnt-work-with-github-action/16747
working-directory: ./coverage
run: |
sed -i "s@${GITHUB_WORKSPACE}@/github/workspace/@g" lcov.info
- name: Run SonarCloud Scanner
uses: docker://unbounce/sonarcloud-github-action:stable
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
SONAR_TOKEN: ${{ secrets.SONAR_LOGIN }}