Skip to content

Commit

Permalink
Merge pull request #262 from christianang/markdownlint-release-1.11.0
Browse files Browse the repository at this point in the history
[release-1.11.0] Update node version, and change base image of markdownlint (#182)
  • Loading branch information
christianang authored May 8, 2024
2 parents ce32f01 + 70de9fb commit 0aeb07e
Show file tree
Hide file tree
Showing 4 changed files with 14 additions and 11 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
15 changes: 9 additions & 6 deletions controllers/machine/machine_controller_intg_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -93,13 +93,16 @@ func intgTestMachineController() {
})
It("Corresponding Endpoints should be created", func() {
ep := &corev1.Endpoints{}
Eventually(func() bool {
Eventually(func() int {
err := ctx.Client.Get(ctx.Context, client.ObjectKey{Name: cluster.Namespace + "-" + cluster.Name + "-control-plane", Namespace: cluster.Namespace}, ep)
return err == nil
}).Should(BeTrue())
Expect(ep.Subsets).ShouldNot(BeNil())
Expect(ep.Subsets[0].Addresses).ShouldNot(BeNil())
Expect(len(ep.Subsets[0].Addresses)).Should(Equal(1))
if err != nil {
return 0
}
if len(ep.Subsets) == 0 {
return 0
}
return len(ep.Subsets[0].Addresses)
}).Should(Equal(1))
Expect(ep.Subsets[0].Addresses[0].IP).Should(Equal("1.1.1.1"))
})
It("Should add one more machine", func() {
Expand Down

0 comments on commit 0aeb07e

Please sign in to comment.