Switch to SonarCloud #2
@@ -1,6 +1,9 @@
|
||||
name: CI
|
||||
on:
|
||||
push:
|
||||
branches: [ main ]
|
||||
pull_request:
|
||||
types: [opened, synchronize, reopened]
|
||||
paths-ignore:
|
||||
- 'README.md'
|
||||
- 'LICENSE.md'
|
||||
@@ -29,11 +32,16 @@ jobs:
|
||||
run: |
|
||||
coverage run -m py.test -v --junitxml=testresults.xml
|
||||
coverage xml
|
||||
- uses: sonarsource/sonarqube-scan-action@master
|
||||
- name: SonarCloud Scan
|
||||
uses: SonarSource/sonarcloud-github-action@master
|
||||
env:
|
||||
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 }}
|
||||
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} # Needed to get PR information, if any
|
||||
SONAR_TOKEN: ${{ secrets.SONAR_TOKEN_CLOUD }}
|
||||
# - uses: sonarsource/sonarqube-scan-action@master
|
||||
# env:
|
||||
# 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
|
||||
|
||||
# Unit test / coverage reports
|
||||
lintreport.txt
|
||||
testresults.xml
|
||||
# lintreport.txt
|
||||
# testresults.xml
|
||||
htmlcov/
|
||||
.tox/
|
||||
.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
|
||||
Simple script to convert IPv4 addresses to 6to4 addresses. See RFC 3056 for details.
|
||||
|
||||
@@ -1,4 +1,8 @@
|
||||
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.coverage.reportPaths=coverage.xml
|
||||
sonar.python.pylint.reportPaths=lintreport.txt
|
||||
|
||||
Reference in New Issue
Block a user