-
Notifications
You must be signed in to change notification settings - Fork 8
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
1 parent
a2e0c6a
commit adf30bc
Showing
36 changed files
with
1,224 additions
and
51 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,55 @@ | ||
name: BVSwift Sonarqube Scan CI | ||
|
||
on: | ||
push: | ||
branches: [ develop ] | ||
pull_request: | ||
branches: [ develop ] | ||
|
||
env: | ||
SONAR_LOGIN: ${{ secrets.SONAR_TOKEN }} | ||
SONAR_URL: ${{ secrets.SONAR_URL }} | ||
|
||
jobs: | ||
build: | ||
|
||
runs-on: macos-11 | ||
|
||
steps: | ||
- uses: actions/checkout@v2 | ||
- uses: Homebrew/actions/setup-homebrew@master | ||
|
||
- name: Select Xcode | ||
run: sudo Xcode-select -switch /Applications/Xcode_13.1.app | ||
|
||
- name: GenerateBuildConfigCoverage | ||
run: sh '././ci_scripts/generateCoverage.sh' | ||
|
||
- uses: actions/upload-artifact@v2 | ||
with: | ||
name: Coverage | ||
path: | | ||
${{ github.workspace }}/sonarqube-generic-coverage.xml | ||
retention-days: 1 | ||
|
||
scan: | ||
needs: build | ||
|
||
runs-on: [self-hosted,qa] | ||
|
||
steps: | ||
- uses: actions/checkout@v2 | ||
with: | ||
fetch-depth: 0 | ||
- uses: actions/download-artifact@v2 | ||
with: | ||
name: Coverage | ||
path: ${{ github.workspace }} | ||
- uses: actions/setup-java@v2 | ||
with: | ||
distribution: 'adopt' | ||
java-version: '11' | ||
|
||
|
||
- name: Sonarqube Scan | ||
run: sh '././ci_scripts/sonarscan.sh' |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
30 changes: 30 additions & 0 deletions
30
BVSwift/BVConversations/Display/Fields/Types/BVSecondaryRatingStat.swift
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,30 @@ | ||
// | ||
// | ||
// BVSecondaryRatingStat.swift | ||
// BVSwift | ||
// | ||
// Copyright © 2022 Bazaarvoice. All rights reserved. | ||
// | ||
|
||
import Foundation | ||
|
||
internal struct BVSecondaryRatingStat: BVQueryField { | ||
|
||
private let value: CustomStringConvertible | ||
|
||
var internalDescription: String { | ||
return BVConversationsConstants.BVQueryType.Keys.secondaryRatingStats | ||
} | ||
|
||
var representedValue: CustomStringConvertible { | ||
return value | ||
} | ||
|
||
var description: String { | ||
return internalDescription | ||
} | ||
|
||
init(_ _value: Bool) { | ||
value = "\(_value)" | ||
} | ||
} |
30 changes: 30 additions & 0 deletions
30
BVSwift/BVConversations/Display/Fields/Types/BVTagStats.swift
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,30 @@ | ||
// | ||
// | ||
// BVTagStats.swift | ||
// BVSwift | ||
// | ||
// Copyright © 2022 Bazaarvoice. All rights reserved. | ||
// | ||
|
||
import Foundation | ||
|
||
internal struct BVTagStats: BVQueryField { | ||
|
||
private let value: CustomStringConvertible | ||
|
||
var internalDescription: String { | ||
return BVConversationsConstants.BVQueryType.Keys.tagStats | ||
} | ||
|
||
var representedValue: CustomStringConvertible { | ||
return value | ||
} | ||
|
||
var description: String { | ||
return internalDescription | ||
} | ||
|
||
init(_ _value: Bool) { | ||
value = "\(_value)" | ||
} | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.