Skip to content

Commit

Permalink
Update node version, and change base image of markdownlint (#182)
Browse files Browse the repository at this point in the history
* Update node version
* Improve integration test
* change base image of markdownlint to not to pull from docker

---------

Signed-off-by: Lubron Zhan <[email protected]>
  • Loading branch information
lubronzhan authored Mar 13, 2024
1 parent 3046d4a commit a70caef
Show file tree
Hide file tree
Showing 4 changed files with 9 additions and 8 deletions.
4 changes: 2 additions & 2 deletions .github/workflows/actions.yml
Original file line number Diff line number Diff line change
Expand Up @@ -27,9 +27,9 @@ jobs:
run: cd hack/tools && make golangci-lint

- name: Install npm
uses: actions/setup-node@v2
uses: actions/setup-node@v4
with:
node-version: '14'
node-version: '20'

- name: Install markdown-lint tool
run: npm install -g markdownlint-cli
Expand Down
4 changes: 2 additions & 2 deletions .github/workflows/push.yml
Original file line number Diff line number Diff line change
Expand Up @@ -21,9 +21,9 @@ jobs:
run: cd hack/tools && make golangci-lint

- name: Install npm
uses: actions/setup-node@v2
uses: actions/setup-node@v4
with:
node-version: '14'
node-version: '20'

- name: Install markdown-lint tool
run: npm install -g markdownlint-cli
Expand Down
2 changes: 1 addition & 1 deletion Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -180,7 +180,7 @@ lint-markdown: ## Lint the project's markdown
ifdef GITHUB_ACTIONS
markdownlint -c md-config.json .
else
docker run -i --rm -v "$$(pwd)":/work $(CACHE_IMAGE_REGISTRY)/tmknom/markdownlint -c /work/md-config.json .
docker run -i --rm -v "$$(pwd)":/work ghcr.io/tmknom/dockerfiles/markdownlint -c /work/md-config.json .
endif

.PHONY: lint-shell
Expand Down
7 changes: 4 additions & 3 deletions controllers/machine/machine_controller_intg_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -93,10 +93,11 @@ func intgTestMachineController() {
})
It("Corresponding Endpoints should be created", func() {
ep := &corev1.Endpoints{}
Eventually(func() error {
return ctx.Client.Get(ctx.Context, client.ObjectKey{Name: cluster.Namespace + "-" + cluster.Name + "-control-plane", Namespace: cluster.Namespace}, ep)
}).Should(Succeed())
Eventually(func() int {
err := ctx.Client.Get(ctx.Context, client.ObjectKey{Name: cluster.Namespace + "-" + cluster.Name + "-control-plane", Namespace: cluster.Namespace}, ep)
if err != nil {
return 0
}
if len(ep.Subsets) == 0 {
return 0
}
Expand Down

0 comments on commit a70caef

Please sign in to comment.