Bump ws from 7.5.9 to 7.5.10 #1010
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: Node CI | |
on: | |
workflow_dispatch: | |
push: | |
branches: | |
- release-* | |
pull_request: | |
branches: | |
- release-* | |
- staging | |
- main | |
- master | |
jobs: | |
test: | |
runs-on: ubuntu-latest | |
steps: | |
- uses: actions/checkout@master | |
with: | |
fetch-depth: 0 # Shallow clones should be disabled for a better relevancy of analysis | |
- name: Set up Node.js | |
uses: actions/[email protected] | |
with: | |
cache: npm | |
cache-dependency-path: "package-lock.json" | |
node-version: 16 | |
- name: Install dependencies | |
run: npm ci | |
- name: Lint (GitHub) | |
run: npm run lint | |
- name: Lint (SonarCloud) | |
run: npm run lint:json | |
- name: Unit tests | |
run: npm run test | |
- name: Transform paths in reports | |
run: sed -i 's/\/home\/runner\/work\/smartlab-initiative\/smartlab-initiative/\./' ./lint/report.json coverage/lcov.info | |
- name: SonarCloud Scan | |
uses: SonarSource/sonarcloud-github-action@master | |
with: | |
args: > | |
-Dsonar.organization=smartlab-br | |
-Dsonar.projectKey=smartlab-br_smartlab-initiative | |
-Dsonar.pullrequest.key=${{ github.event.pull_request.number }} | |
-Dsonar.pullrequest.branch=${{ github.event.pull_request.head.ref }} | |
-Dsonar.scm.revision=${{ github.event.pull_request.head.sha }} | |
env: | |
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} # Needed to get PR information, if any | |
SONAR_TOKEN: ${{ secrets.SONAR_TOKEN }} |