This repository has been archived by the owner on Oct 11, 2024. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 45
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Pin vale and markdownlint-cli to current versions
- Loading branch information
Showing
2 changed files
with
8 additions
and
10 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -90,18 +90,16 @@ jobs: | |
environment: Testing | ||
runs-on: ubuntu-latest | ||
if: startsWith(github.ref, 'refs/tags/') || github.ref == 'refs/heads/release-ci' || needs.precheck.outputs.docfileschanged == 'true' | ||
defaults: | ||
run: | ||
working-directory: docs | ||
|
||
steps: | ||
- uses: actions/checkout@v3 | ||
|
||
- name: Install dependencies for docs lint | ||
run: | | ||
sudo snap install --edge vale | ||
npm install -g markdownlint-cli | ||
vale --version && markdownlint --version | ||
wget https://github.com/errata-ai/vale/releases/download/v2.20.2/vale_2.20.2_Linux_64-bit.tar.gz # NOTE: update in Dockerfile when updating | ||
mkdir bin && tar -xvzf vale_2.20.2_Linux_64-bit.tar.gz -C bin | ||
echo "$PWD/bin" >> $GITHUB_PATH | ||
npm i -g [email protected] # NOTE: update in Dockerfile when updating | ||
- uses: actions/download-artifact@master | ||
name: Download cli docs from build step | ||
|
@@ -111,7 +109,7 @@ jobs: | |
|
||
- name: Run docs lint | ||
run: | | ||
make -o genclidocs check | ||
cd docs && make -o genclidocs check | ||
# ---------------------------------------------------------------------------------------------------- | ||
# --- Integration and Unit Testing ------------------------------------------------------------------- | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -9,13 +9,13 @@ RUN apt-get -y update && apt-get -y install gpg emacs curl git make \ | |
&& apt-get autoclean \ | ||
&& node --version \ | ||
&& npm --version \ | ||
&& cd /tmp && curl -O -L https://github.com/errata-ai/vale/releases/download/v2.20.1/vale_2.20.1_Linux_64-bit.tar.gz \ | ||
&& tar -xvzf vale_2.20.1_Linux_64-bit.tar.gz -C /usr/bin vale | ||
&& cd /tmp && curl -O -L https://github.com/errata-ai/vale/releases/download/v2.20.1/vale_2.20.1_Linux_64-bit.tar.gz \ # NOTE: update in CI when updating | ||
&& tar -xvzf vale_2.20.1_Linux_64-bit.tar.gz -C /usr/bin vale \ | ||
&& npm install -g [email protected] # NOTE: update in CI when updating | ||
|
||
WORKDIR /usr/src | ||
COPY package.json package-lock.json* ./ | ||
RUN npm ci \ | ||
&& npm install -g markdownlint-cli \ | ||
&& npm cache clean --force \ | ||
&& rm -f package.json package-lock.json* | ||
ENV PATH /usr/src/node_modules/.bin:$PATH | ||
|