Skip to content

Commit

Permalink
chore: add dmt lint
Browse files Browse the repository at this point in the history
Signed-off-by: Kirill Kramorov <kirill.kramorov@flant.com>
  • Loading branch information
Kirill Kramorov committed Dec 18, 2024
1 parent aee9710 commit 8470757
Show file tree
Hide file tree
Showing 4 changed files with 4 additions and 4 deletions.
2 changes: 1 addition & 1 deletion .github/ci_templates/tests.yml
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@ docker_options: '-w /deckhouse -v ${{github.workspace}}:/deckhouse -e "TERM=xter
{!{ define "dmtlint_run_args" }!}
# <template: dmt_lint_run_args>
args: 'make dmt-lint'
docker_options: '-w /deckhouse -v ${{github.workspace}}:/deckhouse -e "TERM=xterm-256color" -v ~/go-pkg-cache:/go/pkg'
docker_options: '-w /deckhouse -v ${{github.workspace}}:/deckhouse -e "TERM=xterm-256color" -v ~/go-pkg-cache:/go/pkg --user $(id -u):$(id -g)'
# </template: dmt_lint_run_args>
{!{- end -}!}

Expand Down
2 changes: 1 addition & 1 deletion .github/workflows/build-and-test_dev.yml
Original file line number Diff line number Diff line change
Expand Up @@ -1234,7 +1234,7 @@ jobs:
echo "⚓️ 📥 [$(date -u)] Pull 'tests' image..."
docker pull ${TESTS_IMAGE_NAME}
echo "⚓️ 🏎 [$(date -u)] Run tests..."
docker run -w /deckhouse -v ${{github.workspace}}:/deckhouse -e "TERM=xterm-256color" -v ~/go-pkg-cache:/go/pkg ${TESTS_IMAGE_NAME} make dmt-lint
docker run -w /deckhouse -v ${{github.workspace}}:/deckhouse -e "TERM=xterm-256color" -v ~/go-pkg-cache:/go/pkg --user $(id -u):$(id -g) ${TESTS_IMAGE_NAME} make dmt-lint
# </template: tests_before_build_template>

dhctl_tests:
Expand Down
2 changes: 1 addition & 1 deletion .github/workflows/build-and-test_pre-release.yml
Original file line number Diff line number Diff line change
Expand Up @@ -949,7 +949,7 @@ jobs:
echo "⚓️ 📥 [$(date -u)] Pull 'tests' image..."
docker pull ${TESTS_IMAGE_NAME}
echo "⚓️ 🏎 [$(date -u)] Run tests..."
docker run -w /deckhouse -v ${{github.workspace}}:/deckhouse -e "TERM=xterm-256color" -v ~/go-pkg-cache:/go/pkg ${TESTS_IMAGE_NAME} make dmt-lint
docker run -w /deckhouse -v ${{github.workspace}}:/deckhouse -e "TERM=xterm-256color" -v ~/go-pkg-cache:/go/pkg --user $(id -u):$(id -g) ${TESTS_IMAGE_NAME} make dmt-lint
# </template: tests_before_build_template>

dhctl_tests:
Expand Down
2 changes: 1 addition & 1 deletion .github/workflows/build-and-test_release.yml
Original file line number Diff line number Diff line change
Expand Up @@ -3185,7 +3185,7 @@ jobs:
echo "⚓️ 📥 [$(date -u)] Pull 'tests' image..."
docker pull ${TESTS_IMAGE_NAME}
echo "⚓️ 🏎 [$(date -u)] Run tests..."
docker run -w /deckhouse -v ${{github.workspace}}:/deckhouse -e "TERM=xterm-256color" -v ~/go-pkg-cache:/go/pkg ${TESTS_IMAGE_NAME} make dmt-lint
docker run -w /deckhouse -v ${{github.workspace}}:/deckhouse -e "TERM=xterm-256color" -v ~/go-pkg-cache:/go/pkg --user $(id -u):$(id -g) ${TESTS_IMAGE_NAME} make dmt-lint
# </template: tests_before_build_template>
# <template: update_comment_on_finish>
- name: Update comment on finish
Expand Down

0 comments on commit 8470757

Please sign in to comment.