Skip to content

chore: adapt build action #5

chore: adapt build action

chore: adapt build action #5

Workflow file for this run

name: Build
on:
push:
branches:
- develop
- chore/adapt-for-2024-1
pull_request:
types: [opened, synchronize, reopened]
jobs:
sonarcloud:
name: Test Unit & Sonar Scan
runs-on: ubuntu-latest
steps:
- name: Checkout
uses: actions/checkout@v3
with:
fetch-depth: 0
- name: Set up Node.js
uses: actions/setup-node@v3
with:
node-version: '18'
- name: Install dependencies
run: npm install --legacy-peer-deps
- name: Linter
run: npm run lint:report
- name: Tests & Coverage
run: npm run test:cov
- name: SonarCloud Scan
uses: SonarSource/sonarcloud-github-action@master
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
SONAR_TOKEN: ${{ secrets.SONAR_TOKEN }}