-
Notifications
You must be signed in to change notification settings - Fork 19
40 lines (39 loc) · 963 Bytes
/
sonarcloud-report.yml
File metadata and controls
40 lines (39 loc) · 963 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
# ~~ Generated by projen. To modify, edit .projenrc.ts and run "pnpm exec projen".
name: sonarcloud-report
on:
push:
branches:
- main
- beta
pull_request:
types:
- opened
- synchronize
- reopened
jobs:
sonarcloud-report:
runs-on: ubuntu-latest
permissions:
contents: read
steps:
- name: Checkout
uses: actions/checkout@v5
with:
fetch-depth: 0
- name: Setup pnpm
uses: pnpm/action-setup@v4
with:
version: "10"
- name: Setup Node.js
uses: actions/setup-node@v5
with:
node-version: "24"
- name: Install dependencies
run: pnpm i --frozen-lockfile
- name: Run tests
run: pnpm run test
- name: SonarCloud Scan
uses: SonarSource/sonarqube-scan-action@v7
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
SONAR_TOKEN: ${{ secrets.SONAR_TOKEN }}