-
-
Notifications
You must be signed in to change notification settings - Fork 0
32 lines (32 loc) · 1.09 KB
/
Copy pathbuild.yml
File metadata and controls
32 lines (32 loc) · 1.09 KB
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
# This workflow is managed by gh actions-lock.
# SPDX-License-Identifier: MPL-2.0
# This workflow is managed by gh actions-lock.
# This workflow is managed by gh actions-lock.
# Copyright (c) 2026 Jonathan D.A. Jewell (hyperpolymath) <j.d.a.jewell@open.ac.uk>
#
# SonarQube Cloud (SonarCloud) static analysis. Generated from the SonarCloud
# setup wizard; analysis scope + exclusions live in sonar-project.properties.
# Requires the SONAR_TOKEN repository secret (Settings -> Secrets and variables
# -> Actions). Project: https://sonarcloud.io/project/overview?id=hyperpolymath_boj-server
name: Build
on:
push:
branches:
- main
pull_request:
types: [opened, synchronize, reopened]
permissions:
actions: read
contents: read
jobs:
sonarqube:
name: SonarQube
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4.3.1
with:
fetch-depth: 0 # Shallow clones should be disabled for a better relevancy of analysis
- name: SonarQube Scan
uses: SonarSource/sonarqube-scan-action@v8.1.0
env:
SONAR_TOKEN: ${{ secrets.SONAR_TOKEN }}