Skip to content

refactor: switch from deprecated 'substr' to 'substring' #109

refactor: switch from deprecated 'substr' to 'substring'

refactor: switch from deprecated 'substr' to 'substring' #109

Workflow file for this run

name: Build
on:
push:
branches:
- '**'
pull_request:
types: [opened, synchronize, reopened]
env:
HUSKY: 0
jobs:
Build:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v3
with:
fetch-depth: 0 # Shallow clones should be disabled for a better relevancy of analysis
- name: Environment details
run: npm version
- name: Install dependencies
run: npm ci
- name: Build
run: npm run build
- name: Test
run: npm run test
- name: Publish Test Results
uses: EnricoMi/publish-unit-test-result-action@v2
if: always()
with:
files: 'test-results.xml'
- 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 }}