Skip to content

Commit

Permalink
Debug
Browse files Browse the repository at this point in the history
  • Loading branch information
Waldz committed May 9, 2024
1 parent c383f49 commit 217425f
Show file tree
Hide file tree
Showing 2 changed files with 13 additions and 1 deletion.
2 changes: 1 addition & 1 deletion .github/workflows/quality.yml
Original file line number Diff line number Diff line change
Expand Up @@ -35,7 +35,7 @@ jobs:
path: ${{ github.workspace }}/src/github.com/${{ github.repository }}
- uses: actions/setup-go@v3
with:
go-version: 1.21.x
go-version: 1.18.x
- run: go run ci/mage.go -v CheckCopyright
- run: go run ci/mage.go -v CheckGoImports
- run: go run ci/mage.go -v CheckGoLint
Expand Down
12 changes: 12 additions & 0 deletions magefile.go
Original file line number Diff line number Diff line change
Expand Up @@ -21,6 +21,8 @@
package main

import (
"fmt"

"github.com/magefile/mage/mg"
"github.com/magefile/mage/sh"
"github.com/mysteriumnetwork/go-ci/commands"
Expand Down Expand Up @@ -64,6 +66,16 @@ func Check() {

// Checks for issues with go imports
func CheckGoImports() error {
sh.RunV("ls", "-la", "/home/runner/work/openvpn-forwarder/openvpn-forwarder/")
sh.RunV("ls", "-la", "/home/runner/work/openvpn-forwarder/openvpn-forwarder/src")
sh.RunV("ls", "-la", "/home/runner/work/openvpn-forwarder/openvpn-forwarder/bin")

err := sh.RunV("go", "get", "golang.org/x/tools/cmd/goimports")
if err != nil {
fmt.Println("Could not go get goimports")
return err
}

return commands.GoImports("./...")
}

Expand Down

0 comments on commit 217425f

Please sign in to comment.