chore(release): pulling master into develop post release v2.0.5 #99
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
name: 'Unit Tests, Coverage & Sonar' | |
on: | |
workflow_dispatch: | |
push: | |
branches: ['master', 'develop'] | |
pull_request: | |
branches: ['master', 'develop'] | |
types: ['opened', 'reopened', 'synchronize'] | |
jobs: | |
build: | |
name: 'Unit Tests, Coverage & Sonar' | |
runs-on: ubuntu-latest | |
steps: | |
- name: Checkout | |
uses: actions/checkout@v3 | |
with: | |
fetch-depth: 0 | |
- name: Setup Node | |
uses: actions/setup-node@v3 | |
with: | |
node-version-file: '.nvmrc' | |
cache: 'npm' | |
- name: Execute unit tests | |
env: | |
HUSKY: 0 | |
run: | | |
npm ci | |
npm run test:ci | |
npm run check:lint:ci | |
- name: SonarCloud Scan | |
uses: SonarSource/sonarcloud-github-action@master | |
env: | |
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} | |
SONAR_TOKEN: ${{ secrets.SONAR_TOKEN }} |