Skip to content

Commit

Permalink
🧱 Run Qodana on macos-latest
Browse files Browse the repository at this point in the history
  • Loading branch information
tiulpin committed Jul 12, 2024
1 parent 7d8bccd commit 92058c0
Show file tree
Hide file tree
Showing 3 changed files with 10 additions and 10 deletions.
18 changes: 8 additions & 10 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -69,7 +69,7 @@ jobs:
QODANA_LICENSE_ONLY_TOKEN: ${{ secrets.QODANA_LICENSE_ONLY_TOKEN }}

code-quality:
runs-on: ubuntu-latest
runs-on: macos-14
permissions:
checks: write
pull-requests: write
Expand Down Expand Up @@ -98,22 +98,20 @@ jobs:
)
EOF
shell: bash
- uses: docker/login-action@v3
with:
registry: registry.jetbrains.team
username: ${{ secrets.SPACE_USERNAME }}
password: ${{ secrets.SPACE_PASSWORD }}
# - uses: docker/login-action@v3
# with:
# registry: registry.jetbrains.team
# username: ${{ secrets.SPACE_USERNAME }}
# password: ${{ secrets.SPACE_PASSWORD }}
- uses: JetBrains/qodana-action@main
env:
QODANA_TOKEN: ${{ secrets.QODANA_TOKEN }}
QD_PRODUCT_INTERNAL_FEED: "https://data.services.jetbrains.com/products"
with:
use-nightly: true
pr-mode: false
upload-result: true
- uses: actions/upload-artifact@v4
with:
name: qodana-artifacts
path: "${{ runner.temp }}/qodana/results"
args: --ide,QDGO-EAP
- uses: github/codeql-action/init@v3
with:
languages: go
Expand Down
1 change: 1 addition & 0 deletions cmd/cmd_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -53,6 +53,7 @@ func createProject(t *testing.T, name string) string {
return location
}

//goland:noinspection GoUnusedFunction
func createNativeProject(t *testing.T, name string) string {
home, err := os.UserHomeDir()
if err != nil {
Expand Down
1 change: 1 addition & 0 deletions core/container.go
Original file line number Diff line number Diff line change
Expand Up @@ -271,6 +271,7 @@ func CheckContainerEngineMemory() {
log.Fatal(err)
}
var helpUrl string
//goland:noinspection GoDfaConstantCondition
switch goos {
case "windows":
helpUrl = "https://docs.docker.com/desktop/settings/windows/#advanced"
Expand Down

0 comments on commit 92058c0

Please sign in to comment.