Skip to content

Commit

Permalink
ci: Try to fix ct lint
Browse files Browse the repository at this point in the history
  • Loading branch information
jimmidyson committed Aug 7, 2023
1 parent f0046da commit 0f968e3
Show file tree
Hide file tree
Showing 2 changed files with 18 additions and 26 deletions.
8 changes: 5 additions & 3 deletions .github/workflows/checks.yml
Original file line number Diff line number Diff line change
Expand Up @@ -162,12 +162,14 @@ jobs:
name: Fetch main if necessary
run: git fetch origin main:main

- name: Run chart-testing (list-changed)
- if: github.ref != 'refs/heads/main'
name: Run chart-testing (list-changed)
id: list-changed
run: |
set -x
changed=$(devbox run -- ct list-changed --target-branch ${{ github.event.repository.default_branch }})
if [[ -n "$changed" ]]; then
echo "changed=true" >> "$GITHUB_OUTPUT"
if [[ -n "${changed}" ]]; then
echo "changed=true" >> "${GITHUB_OUTPUT}"
fi
- if: steps.list-changed.outputs.changed == 'true'
Expand Down
36 changes: 13 additions & 23 deletions devbox.json
Original file line number Diff line number Diff line change
@@ -1,41 +1,31 @@
{
"packages": [
"actionlint@latest",
"chart-testing@latest",
"clusterctl@latest",
"crane@latest",
"envsubst@latest",
"fluxcd@latest",
"ginkgo@latest",
"github-cli@latest",
"gojq@latest",
"go@latest",
"gojq@latest",
"golangci-lint@latest",
"golines@latest",
"google-cloud-sdk@latest",
"goreleaser@latest",
"kubernetes-helm@latest",
"gotestsum@latest",
"hadolint@latest",
"helm-docs@latest",
"kind@latest",
"kubebuilder@latest",
"kubectl@latest",
"kubernetes-controller-tools@latest",
"kubernetes-helm@latest",
"kustomize@latest",
"pre-commit@latest",
"shfmt@latest",
"upx@latest",
"yamllint@latest",
"chart-testing@latest",
"google-cloud-sdk@latest",
"crane@latest",
"gotestsum@latest",
"golines@latest",
"envsubst@latest",
"kubernetes-controller-tools@latest",
"actionlint@latest",
"hadolint@latest"
],
"shell": {
"init_hook": [
"echo 'Welcome to devbox!' > /dev/null"
],
"scripts": {
"test": [
"echo \"Error: no test specified\" && exit 1"
]
}
}
"yamllint@latest"
]
}

0 comments on commit 0f968e3

Please sign in to comment.