Skip to content

Commit 6c5a6c3

Browse files
fixes CI/linter failed: E: Package 'nodejs-dev' has no installation candidate #8 (#9)
* fixes CI/linter failed: E: Package 'nodejs-dev' has no installation candidate #8 fixed ubuntu version and updated package names * fixed path to be scanned * excluding node_modules folder
1 parent 137a3cf commit 6c5a6c3

File tree

1 file changed

+6
-4
lines changed

1 file changed

+6
-4
lines changed

.github/workflows/markdownlint.yml

Lines changed: 6 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,8 @@ on:
1010

1111
jobs:
1212
build:
13-
runs-on: ubuntu-latest
13+
# set specific OS version
14+
runs-on: ubuntu-20.04
1415
steps:
1516
- uses: actions/checkout@v1
1617

@@ -19,9 +20,10 @@ jobs:
1920
- name: install markdownlint-cli
2021
run: |
2122
sudo apt-get update
22-
sudo apt-get install -y npm sudo nodejs-dev node-gyp libssl1.0-dev
23+
sudo apt-get install -y npm sudo nodejs node-gyp libssl-dev
2324
npm install markdownlint-cli
2425
2526
- name: lint markdown files
26-
# conly scan the /content folder
27-
run: node_modules/.bin/markdownlint content
27+
# scan all files, exclude the "node_modules" as this contains the tool
28+
# itself
29+
run: node_modules/.bin/markdownlint --ignore node_modules .

0 commit comments

Comments
 (0)