- ALM used GitHub
- Scanner command used when applicable (private details masked)
name: Build
on:
push:
branches:
- main
pull_request:
types: [opened, synchronize, reopened]
jobs:
sonarcloud:
name: SonarCloud
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v2
with:
fetch-depth: 0
- uses: pnpm/action-setup@v2
with:
version: 7.26.0
- uses: actions/setup-node@v3
with:
node-version: "16"
cache: "pnpm"
cache-dependency-path: "**/pnpm-lock.yaml"
- name: Install dependencies
run: pnpm install
- name: Test and coverage
run: pnpm jest --coverage
- name: lint
run: pnpm lint:json
- name: SonarCloud Scan
uses: SonarSource/sonarcloud-github-action@master
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
SONAR_TOKEN: ${{ secrets. SONAR_TOKEN }}
- Languages of the repository: typescript
- Error observed (wrap logs/code around with triple quotes ``` for proper formatting)
WARN: No input file found for /home/runner/work/**/*.tsx. No ESLint issues will be imported on this file.
- Steps to reproduce
I output the eslint.json file using the GitHub Actions pnpm lint:json, but it outputs
WARN: No input file found for /home/runner/work/**/*.tsx" and I cannot see any warning or error by eslint on SonarCloud.