Skip to content

chore(deps): replace dependency babel-eslint with @babel/eslint-parser ^7.11.0 #86

chore(deps): replace dependency babel-eslint with @babel/eslint-parser ^7.11.0

chore(deps): replace dependency babel-eslint with @babel/eslint-parser ^7.11.0 #86

Workflow file for this run

on:
push:
branches: ["*"]
paths:
- sonarcloud/**
- .github/workflows/sonarcloud.yml
pull_request:
branches: ["*"]
paths:
- sonarcloud/**
- .github/workflows/sonarcloud.yml
name: Tests sonarcloud action
jobs:
tests-report:
runs-on: ubuntu-latest
name: sonarcloud action
steps:
- uses: actions/checkout@v3
- uses: actions/setup-node@v3
with:
node-version: "18"
- name: Run JS tests
shell: bash
run: |
cd sonarcloud
yarn
yarn test
- name: Run action
uses: ./sonarcloud
with:
repos: sensgithub/eHospital,zabbix/zabbix
output: sonar-output.json
- name: Test action results
shell: bash
run: |
jq --version
cat sonar-output.json
[[ $(cat sonar-output.json | jq -r '. | length') -eq "2" ]] || (echo "Error: Should get 2 results" && exit 1)
cat sonar-output.json | jq -e '.[0].result.status.vulnerabilities'
cat sonar-output.json | jq -e '.[1].result.status.vulnerabilities'