Skip to content

Merge pull request #182 from Shoutzor/dependabot/npm_and_yarn/multi-e… #787

Merge pull request #182 from Shoutzor/dependabot/npm_and_yarn/multi-e…

Merge pull request #182 from Shoutzor/dependabot/npm_and_yarn/multi-e… #787

Workflow file for this run

name: Test
on:
push:
pull_request:
types: [opened, synchronize, reopened]
jobs:
build:
name: Build test
runs-on: ubuntu-latest
steps:
-
name: Checkout
uses: actions/checkout@v2
-
name: Setup Node 18
uses: actions/setup-node@v3
with:
node-version: 18
-
name: Install packages
run: npm install
-
name: Build dist
run: npm run build
sonarcloud:
name: SonarCloud
runs-on: ubuntu-latest
steps:
-
name: Checkout
uses: actions/checkout@v2
with:
fetch-depth: 0 # Shallow clones should be disabled for a better relevancy of analysis
-
name: SonarCloud Scan
uses: SonarSource/sonarcloud-github-action@master
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} # Needed to get PR information, if any
SONAR_TOKEN: ${{ secrets.SONAR_TOKEN }}