actions: run unit-tests and linting in GH actions#3138
Conversation
This will help with running faster builds
|
This pull request does not have a backport label. Could you fix it @v1v? 🙏
|
💔 Tests Failed
Expand to view the summary
Build stats
Test stats 🧪
Test errors
Expand to view the tests failures
|
| run: | | ||
| go install github.com/golangci/golangci-lint/cmd/golangci-lint@v1.50.0 | ||
| go install golang.org/x/lint/golint |
There was a problem hiding this comment.
Force to bump the version to 1.18 so I could use go install
| @@ -1 +1 @@ | |||
| 1.17 | |||
| 1.18 | |||
There was a problem hiding this comment.
I guess this should not cause any issues, but let's wait for the whole e2e-testing runs in the CI
| (?x)^( | ||
| .*/?\.*.(tar.gz) | ||
| )$ | ||
| - id: check-jjbb |
There was a problem hiding this comment.
Remove the dependency with the internal docker registry, as the docker image is in the private repo and vault/docker login with secrets won't work for PRs.
| pre-commit: | ||
| runs-on: ubuntu-latest | ||
| env: | ||
| JENKINS_URL: https://beats-ci.elastic.co/ | ||
| steps: | ||
| - uses: actions/checkout@v3 |
There was a problem hiding this comment.
| runs-on: ubuntu-latest | ||
| steps: | ||
| - uses: dorny/test-reporter@c9b3d0e2bd2a4e96aaf424dbaa31c46b42318226 | ||
| with: | ||
| artifact: test-results # artifact name | ||
| name: JUnit Tests # Name of the check run which will be created | ||
| path: "**/*.xml" # Path to test results (inside artifact .zip) | ||
| reporter: java-junit # Format of test results |
(cherry picked from commit 4e9f87f) # Conflicts: # .go-version
(cherry picked from commit 4e9f87f)
What does this PR do?
Use GitHub actions for the static code analysis and unit tests
Bump go version
Why is it important?
This will help with running faster builds in the CI
Issue
Requires #3139