Skip to content

chore: wip

chore: wip #439

Workflow file for this run

name: CI
on:
push:
jobs:
build:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v2
- uses: actions/cache@v2
with:
path: '**/node_modules'
key: ${{runner.os}}-modules-${{hashFiles('**/package-lock.json')}}
- uses: actions/setup-node@v2
with:
node-version: 14
- run: npm install
- run: npm run build
- uses: actions/upload-artifact@v2
with:
name: build
path: build
test:
needs: [build]
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v2
- uses: actions/cache@v2
with:
path: '**/node_modules'
key: ${{runner.os}}-modules-${{hashFiles('**/package-lock.json')}}
- uses: actions/setup-node@v2
with:
node-version: 14
- run: npm install
- run: npm run test
- uses: actions/upload-artifact@v2
with:
name: coverage
path: coverage
sonarcloud:
needs: test
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v2
with:
fetch-depth: 0
- uses: actions/download-artifact@v2
with:
name: coverage
path: coverage
- name: SonarCloud Scan
uses: sonarsource/[email protected]
env:
GITHUB_TOKEN: ${{secrets.GITHUB_TOKEN}}
SONAR_TOKEN: ${{secrets.SONARQUBE_TOKEN}}