ci/trunk-based-development #1
@@ -60,6 +60,9 @@ jobs:
|
|||||||
- name: Install dependencies
|
- name: Install dependencies
|
||||||
run: go mod tidy
|
run: go mod tidy
|
||||||
|
|
||||||
|
- name: Install swag
|
||||||
|
run: go install github.com/swaggo/swag/cmd/swag@latest
|
||||||
|
|
||||||
- name: Generate Swagger Docs
|
- name: Generate Swagger Docs
|
||||||
run: cd pkg/server && go generate
|
run: cd pkg/server && go generate
|
||||||
|
|
||||||
@@ -91,9 +94,6 @@ jobs:
|
|||||||
- name: Run go fmt
|
- name: Run go fmt
|
||||||
run: go fmt ./...
|
run: go fmt ./...
|
||||||
|
|
||||||
- name: Run go vet
|
|
||||||
run: go vet ./...
|
|
||||||
|
|
||||||
- name: Check for formatting issues
|
- name: Check for formatting issues
|
||||||
run: |
|
run: |
|
||||||
if [ -n "$(go fmt ./...)" ]; then
|
if [ -n "$(go fmt ./...)" ]; then
|
||||||
|
|||||||
@@ -38,7 +38,7 @@ fi
|
|||||||
if command -v yamllint >/dev/null 2>&1; then
|
if command -v yamllint >/dev/null 2>&1; then
|
||||||
for file in "${WORKFLOW_FILES[@]}"; do
|
for file in "${WORKFLOW_FILES[@]}"; do
|
||||||
if [ -f ".yamllint.yaml" ]; then
|
if [ -f ".yamllint.yaml" ]; then
|
||||||
yamllint -c .yamllint.yaml "$file"
|
yamllint -c "$(pwd)/.yamllint.yaml" "$file"
|
||||||
else
|
else
|
||||||
yamllint "$file"
|
yamllint "$file"
|
||||||
fi
|
fi
|
||||||
@@ -47,7 +47,7 @@ elif docker info >/dev/null 2>&1; then
|
|||||||
for file in "${WORKFLOW_FILES[@]}"; do
|
for file in "${WORKFLOW_FILES[@]}"; do
|
||||||
if [ -f ".yamllint.yaml" ]; then
|
if [ -f ".yamllint.yaml" ]; then
|
||||||
docker run --rm -v $(pwd):/workspace -w /workspace pipelinecomponents/yamllint:latest \
|
docker run --rm -v $(pwd):/workspace -w /workspace pipelinecomponents/yamllint:latest \
|
||||||
yamllint -c .yamllint.yaml "$file"
|
yamllint -c /workspace/.yamllint.yaml "$file"
|
||||||
else
|
else
|
||||||
docker run --rm -v $(pwd):/workspace -w /workspace pipelinecomponents/yamllint:latest \
|
docker run --rm -v $(pwd):/workspace -w /workspace pipelinecomponents/yamllint:latest \
|
||||||
yamllint "$file"
|
yamllint "$file"
|
||||||
|
|||||||
Reference in New Issue
Block a user