Switch to SonarCloud
This commit was merged in pull request #2.
This commit is contained in:
@@ -1,6 +1,9 @@
|
|||||||
name: CI
|
name: CI
|
||||||
on:
|
on:
|
||||||
|
push:
|
||||||
|
branches: [ main ]
|
||||||
pull_request:
|
pull_request:
|
||||||
|
types: [opened, synchronize, reopened]
|
||||||
paths-ignore:
|
paths-ignore:
|
||||||
- 'README.md'
|
- 'README.md'
|
||||||
- 'LICENSE.md'
|
- 'LICENSE.md'
|
||||||
@@ -29,11 +32,16 @@ jobs:
|
|||||||
run: |
|
run: |
|
||||||
coverage run -m py.test -v --junitxml=testresults.xml
|
coverage run -m py.test -v --junitxml=testresults.xml
|
||||||
coverage xml
|
coverage xml
|
||||||
- uses: sonarsource/sonarqube-scan-action@master
|
- name: SonarCloud Scan
|
||||||
|
uses: SonarSource/sonarcloud-github-action@master
|
||||||
env:
|
env:
|
||||||
SONAR_TOKEN: ${{ secrets.SONAR_TOKEN }}
|
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} # Needed to get PR information, if any
|
||||||
SONAR_HOST_URL: ${{ secrets.SONAR_HOST_URL }}
|
SONAR_TOKEN: ${{ secrets.SONAR_TOKEN_CLOUD }}
|
||||||
- uses: sonarsource/sonarqube-quality-gate-action@master
|
# - uses: sonarsource/sonarqube-scan-action@master
|
||||||
timeout-minutes: 5
|
# env:
|
||||||
env:
|
# SONAR_TOKEN: ${{ secrets.SONAR_TOKEN }}
|
||||||
SONAR_TOKEN: ${{ secrets.SONAR_TOKEN }}
|
# SONAR_HOST_URL: ${{ secrets.SONAR_HOST_URL }}
|
||||||
|
# - uses: sonarsource/sonarqube-quality-gate-action@master
|
||||||
|
# timeout-minutes: 5
|
||||||
|
# env:
|
||||||
|
# SONAR_TOKEN: ${{ secrets.SONAR_TOKEN }}
|
||||||
4
.gitignore
vendored
4
.gitignore
vendored
@@ -38,8 +38,8 @@ pip-log.txt
|
|||||||
pip-delete-this-directory.txt
|
pip-delete-this-directory.txt
|
||||||
|
|
||||||
# Unit test / coverage reports
|
# Unit test / coverage reports
|
||||||
lintreport.txt
|
# lintreport.txt
|
||||||
testresults.xml
|
# testresults.xml
|
||||||
htmlcov/
|
htmlcov/
|
||||||
.tox/
|
.tox/
|
||||||
.nox/
|
.nox/
|
||||||
|
|||||||
@@ -1,4 +1,4 @@
|
|||||||
# 6to4_converter [](https://github.com/luketainton/6to4_converter/actions/workflows/ci.yml)
|
# 6to4_converter [](https://github.com/luketainton/6to4_converter/actions/workflows/merge-to-main.yml) [](https://sonarcloud.io/summary/new_code?id=luketainton_6to4_converter)
|
||||||
|
|
||||||
## Description
|
## Description
|
||||||
Simple script to convert IPv4 addresses to 6to4 addresses. See RFC 3056 for details.
|
Simple script to convert IPv4 addresses to 6to4 addresses. See RFC 3056 for details.
|
||||||
|
|||||||
@@ -1,8 +1,12 @@
|
|||||||
sonar.projectKey=luketainton_6to4_converter_AYHpASgJSbMjdyWLhHiC
|
sonar.organization=luketainton
|
||||||
|
# sonar.projectKey=luketainton_6to4_converter_AYHpASgJSbMjdyWLhHiC
|
||||||
|
sonar.projectKey=luketainton_6to4_converter
|
||||||
|
sonar.projectName=6to4_converter
|
||||||
|
sonar.projectVersion=1.0
|
||||||
sonar.python.version=3.10
|
sonar.python.version=3.10
|
||||||
sonar.python.coverage.reportPaths=coverage.xml
|
sonar.python.coverage.reportPaths=coverage.xml
|
||||||
sonar.python.pylint.reportPaths=lintreport.txt
|
sonar.python.pylint.reportPaths=lintreport.txt
|
||||||
sonar.python.xunit.reportPath=testresults.xml
|
sonar.python.xunit.reportPath=testresults.xml
|
||||||
sonar.sources=app
|
sonar.sources=app
|
||||||
sonar.tests=tests
|
sonar.tests=tests
|
||||||
sonar.exclusions=,.github/**,.gitignore,CODEOWNERS,CHANGELOG.md,LICENSE.md,README.md,renovate.json,requirements-dev.txt,requirements.txt
|
sonar.exclusions=,.github/**,.gitignore,CODEOWNERS,CHANGELOG.md,LICENSE.md,README.md,renovate.json,requirements-dev.txt,requirements.txt
|
||||||
|
|||||||
Reference in New Issue
Block a user