Skip to content

Commit

Permalink
check links (#436)
Browse files Browse the repository at this point in the history
* check links

* typo
  • Loading branch information
umairidris authored Jul 18, 2020
1 parent cb9a0fe commit 8ccd169
Show file tree
Hide file tree
Showing 2 changed files with 30 additions and 0 deletions.
24 changes: 24 additions & 0 deletions build/links_check.sh
Original file line number Diff line number Diff line change
@@ -0,0 +1,24 @@
# Copyright 2020 Google LLC
#
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
# You may obtain a copy of the License at
#
# https://www.apache.org/licenses/LICENSE-2.0
#
# Unless required by applicable law or agreed to in writing, software
# distributed under the License is distributed on an "AS IS" BASIS,
# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
# See the License for the specific language governing permissions and
# limitations under the License.

#!/bin/bash

set -e

# Print versions
npm version

# Check links of all markdown files in docs.
npm install -g markdown-link-check
for f in $(find docs/ -name '*.md'); do markdown-link-check $f; done
6 changes: 6 additions & 0 deletions build/presubmit.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -29,6 +29,12 @@ steps:
waitFor: ["-"]
id: Markdownlint check

- name: "gcr.io/cloud-builders/npm:current"
entrypoint: "bash"
args: ["build/links_check.sh"]
waitFor: ["-"]
id: Links check

- name: "gcr.io/cloud-foundation-cicd/cft/developer-tools@sha256:02b06198f1da423183937b60493bdaa20dedf36b1a852a1d7fbb5a537fd943fd"
entrypoint: "sh"
args: ["build/go_check.sh"]
Expand Down

0 comments on commit 8ccd169

Please sign in to comment.