test
This commit is contained in:
parent
594175bd30
commit
6209272b46
|
|
@ -88,15 +88,43 @@ jobs:
|
|||
# run: |
|
||||
# ./.github/workflows/test.sh
|
||||
|
||||
BlackduckScan:
|
||||
#needs: [Init]
|
||||
runs-on: builder_blr
|
||||
steps:
|
||||
- name: checkout
|
||||
uses: actions/checkout@v2
|
||||
# BlackduckScan:
|
||||
# #needs: [Init]
|
||||
# runs-on: builder_blr
|
||||
# steps:
|
||||
# - name: checkout
|
||||
# uses: actions/checkout@v2
|
||||
|
||||
- name: blackduck scan
|
||||
run: powershell -ExecutionPolicy RemoteSigned -NoExit -File ${{ github.workspace }}\Build\PS\Invoke-BlackduckDetect.ps1 -SourcePath ${{ github.workspace }} -ApiToken ${{ secrets.BLACKDUCK_TOKEN }}
|
||||
# - name: blackduck scan
|
||||
# run: powershell -ExecutionPolicy RemoteSigned -NoExit -File ${{ github.workspace }}\Build\PS\Invoke-BlackduckDetect.ps1 -SourcePath ${{ github.workspace }} -ApiToken ${{ secrets.BLACKDUCK_TOKEN }}
|
||||
|
||||
CodeAnalysis:
|
||||
runs-on: ubuntu-20.04
|
||||
#needs: [Init]
|
||||
defaults:
|
||||
run:
|
||||
working-directory: ${{ github.workspace }}
|
||||
steps:
|
||||
- uses: actions/checkout@v2
|
||||
|
||||
- name: install Go
|
||||
run: |
|
||||
sudo apt update
|
||||
sudo apt install golang
|
||||
|
||||
- name: coverage-report
|
||||
run: |
|
||||
cd ${{ github.workspace }}
|
||||
go test -cover
|
||||
|
||||
# - name: SonarQube Scan
|
||||
# uses: sonarsource/sonarqube-scan-action@master
|
||||
# env:
|
||||
# SONAR_TOKEN: ${{ secrets.SONAR_TOKEN }}
|
||||
# SONAR_HOST_URL: https://sonarqube.ta.philips.com/
|
||||
# with:
|
||||
# projectBaseDir: ${{ github.workspace }}
|
||||
|
||||
|
||||
|
||||
# Fortify:
|
||||
|
|
|
|||
|
|
@ -0,0 +1,6 @@
|
|||
sonar.projectKey=EDI-hds-oauth2-proxy
|
||||
sonar.projectName=EDI-hds-oauth2-proxy
|
||||
sonar.sources=.
|
||||
sonar.exclusions=**/*_test.go
|
||||
sonar.tests=.
|
||||
sonar.test.inclusions=**/*_test.go
|
||||
Loading…
Reference in New Issue