summaryrefslogtreecommitdiff
path: root/.github/workflows/build.yml
diff options
context:
space:
mode:
authorYuriy Andamasov <yuriy@sentrium.io>2023-02-23 09:57:36 +0100
committerGitHub <noreply@github.com>2023-02-23 09:57:36 +0100
commit7a99a59b338fecd73d34819a0a95646c054a0f12 (patch)
tree1adf405c4169f0a8ff24670e39ad0a46a68ad87a /.github/workflows/build.yml
parentdcb4a95c796132988258447d99430541aae955cb (diff)
downloadvyos-1x-7a99a59b338fecd73d34819a0a95646c054a0f12.tar.gz
vyos-1x-7a99a59b338fecd73d34819a0a95646c054a0f12.zip
Create build.yml
Diffstat (limited to '.github/workflows/build.yml')
-rw-r--r--.github/workflows/build.yml20
1 files changed, 20 insertions, 0 deletions
diff --git a/.github/workflows/build.yml b/.github/workflows/build.yml
new file mode 100644
index 000000000..d77275d38
--- /dev/null
+++ b/.github/workflows/build.yml
@@ -0,0 +1,20 @@
+name: Build
+on:
+ push:
+ branches:
+ - current
+ pull_request:
+ types: [opened, synchronize, reopened]
+jobs:
+ sonarcloud:
+ name: SonarCloud
+ runs-on: ubuntu-latest
+ steps:
+ - uses: actions/checkout@v3
+ with:
+ fetch-depth: 0 # Shallow clones should be disabled for a better relevancy of analysis
+ - name: SonarCloud Scan
+ uses: SonarSource/sonarcloud-github-action@master
+ env:
+ GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} # Needed to get PR information, if any
+ SONAR_TOKEN: ${{ secrets.SONAR_TOKEN }}