Skip to content

Replace CI & badges w/ SonarCloud #1

Replace CI & badges w/ SonarCloud

Replace CI & badges w/ SonarCloud #1

Workflow file for this run

name: CI Build
on:
push:
branches: [ "master" ]
pull_request:
types: [opened, synchronize, reopened]
jobs:
build:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v3
with:
fetch-depth: 0
- name: Use Node.js latest
uses: actions/setup-node@v3
with:
node-version: latest
- name: Install
run: |
npm ci
- name: Lint
run: |
npm run lint
- name: Tests & Coverage
run: |
npm run coverage-ci
- name: SonarCloud Scan
uses: SonarSource/sonarcloud-github-action@master
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
SONAR_TOKEN: ${{ secrets.SONARCLOUD_TOKEN }}