E2E installing extensions via root folder #2903
This file contains hidden or 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: SonarCloud | |
| on: | |
| push: | |
| branches: ["main", "develop"] | |
| pull_request: | |
| types: [opened, synchronize, reopened] | |
| workflow_dispatch: | |
| jobs: | |
| build: | |
| name: SonarCloud | |
| runs-on: ubuntu-latest | |
| if: ${{ github.event_name == 'push' || github.event.pull_request.head.repo.full_name == github.repository }} | |
| steps: | |
| - uses: actions/checkout@v6 | |
| with: | |
| fetch-depth: 0 # Shallow clones should be disabled for a better relevancy of analysis | |
| - name: Set up Node.js | |
| uses: actions/setup-node@v6 | |
| with: | |
| node-version: 20 | |
| - name: Enable corepack | |
| run: corepack enable yarn | |
| - name: Restore cache | |
| uses: actions/cache@v5 | |
| with: | |
| path: | | |
| .yarn/cache | |
| **/node_modules | |
| key: v5-${{ runner.os }}-yarn-${{ hashFiles('**/yarn.lock') }} | |
| restore-keys: v5-${{ runner.os }}-yarn- | |
| - name: Install dependencies | |
| run: yarn install | |
| - name: Generates lint report and file path formatting | |
| run: | | |
| yarn lint:ci:report | |
| sed -i 's|/home/runner/work/lichtblick/lichtblick/|./|g' eslint-report.json | |
| continue-on-error: true | |
| - name: Test and coverage | |
| run: yarn test:coverage | |
| continue-on-error: true | |
| - name: ScanCloud Scan | |
| uses: sonarsource/sonarqube-scan-action@v7.0.0 | |
| env: | |
| SONAR_TOKEN: ${{ secrets.SONAR_TOKEN }} | |
| SONAR_HOST_URL: ${{ vars.SONAR_HOST_URL }} |