Skip to content

[NAB-327] - Release 4.0.0 #6

[NAB-327] - Release 4.0.0

[NAB-327] - Release 4.0.0 #6

Workflow file for this run

name: PR Test Build
on:
pull_request:
types: [ opened, synchronize, reopened ]
jobs:
build:
name: Build and test
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
with:
fetch-depth: 0
- name: Setup Node.js
uses: actions/setup-node@v3
with:
node-version: 18
- run: npm i --legacy-peer-deps
- name: Lint
run: npm run lint
- name: Check spelling
run: npm run spell
- name: Test
run: npm run test
- name: Edit Path
run: |
sed -i 's/SF:.*.src/SF:src/g' coverage/lcov.info
sed -i 's/SF:.*.src/SF:src/g' coverage/lcov.info
- name: SonarCloud scan
uses: SonarSource/sonarcloud-github-action@master
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
SONAR_TOKEN: ${{ secrets.SONAR_TOKEN }}