Skip to content
This repository has been archived by the owner on Oct 11, 2024. It is now read-only.

Commit

Permalink
Pin vale and markdownlint-cli to current versions
Browse files Browse the repository at this point in the history
  • Loading branch information
meain committed Oct 10, 2022
1 parent 4d10eae commit 7472b22
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 10 deletions.
12 changes: 5 additions & 7 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand All @@ -111,7 +109,7 @@ jobs:

- name: Run docs lint
run: |
make -o genclidocs check
cd docs && make -o genclidocs check
# ----------------------------------------------------------------------------------------------------
# --- Integration and Unit Testing -------------------------------------------------------------------
Expand Down
6 changes: 3 additions & 3 deletions docs/Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down

0 comments on commit 7472b22

Please sign in to comment.