ivankatliarchuk commented on code in PR #269: URL: https://github.com/apache/skywalking-eyes/pull/269#discussion_r3036776293
########## .github/workflows/lint.yaml: ########## @@ -0,0 +1,44 @@ +name: Lint + +on: + pull_request: + branches: [ main ] + +jobs: + lint: + name: Markdown and Go + runs-on: ubuntu-latest + permissions: + # Required: allow read access to the content for analysis. + contents: read + steps: + + - name: Check out code into the Go module directory + uses: actions/checkout@de0fac2e4500dabe0009e67214ff5f5447ce83dd # v6.0.2 + + - name: Set up Go + uses: actions/setup-go@4a3601121dd01d1626a1e23e37211e3254c1c06c # v6.4.0 + with: + go-version-file: go.mod + + - name: Go formatting + run: | + if [ -z "$(gofmt -l .)" ]; then + echo -e "All '*.go' files are properly formatted." + else + echo -e "Please run 'make lint' to fix. Some files need formatting:" Review Comment: fixed ########## .github/workflows/lint.yaml: ########## @@ -0,0 +1,44 @@ +name: Lint + +on: + pull_request: + branches: [ main ] + Review Comment: added -- This is an automated message from the Apache Git Service. To respond to the message, please log on to GitHub and use the URL above to go to the specific comment. To unsubscribe, e-mail: [email protected] For queries about this service, please contact Infrastructure at: [email protected]
