You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Improve Github Actions Workflow and GoLint (#4672)
### Details:
This PR improves the Go-Linting structure in our CI, as well as move the
Github Actions workflows into the "Pipeline" mentality, rather than
individual Workflows.
Changes:
1. Currently Go linting is tightly coupled with pre-commits, which make
things very complex and error prone. This commit removes Go linting from
any pre-commit logic, and only have it as a first class citizen in
Github Actions.
2. Create the Notion of a pipeline in github actions, and not just
standalone workflows. One step towards migrating from BuildKite
3. Use CI built binaries in Test Containers Suite.
### Github actions pipeline will look like this:

echo "Swag is not installed. Please ensure Go is properly configured and Swag is installed."
51
34
exit 1
52
35
fi
53
36
54
37
# Generate the swagger.json
55
38
- name: Generate Swagger file
56
-
shell: bash
57
39
run: |
58
-
set -euo pipefail
59
40
make generate-swagger
60
41
61
42
# Compare the newly generated swagger.json with the committed swagger.json
62
43
- name: Check for Swagger differences
63
-
shell: bash
64
44
run: |
65
-
set -euo pipefail
66
45
git diff --exit-code pkg/swagger/swagger.json || (echo "Swagger is outdated. Please regenerate it with 'make generate-swagger' and commit the changes." && exit 1)
0 commit comments