Skip to content
Merged
Show file tree
Hide file tree
Changes from 4 commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
35 changes: 35 additions & 0 deletions .github/workflows/lint.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -256,3 +256,38 @@ jobs:
uses: codespell-project/codespell-problem-matcher@v1
- name: codespell
run: ./scripts/spelling.sh codespell
weblint:
name: weblint
runs-on: ubuntu-latest
container: debian:stable
steps:
- name: Update package database
run: apt-get update -y
- name: Install Git
run: apt-get -y install git
Comment thread
FloEdelmann marked this conversation as resolved.
Outdated
- uses: actions/checkout@v3
- name: Cache NPM
uses: actions/cache@v3
env:
cache-name: cache-npm
with:
# This is the correct directory to cache
# See https://docs.npmjs.com/cli/v8/commands/npm-ci
path: ~/.npm
key: debian_stable-lint-weblint-${{ env.cache-name }}-${{ hashFiles('**/package-lock.json') }}
restore-keys: |
debian_stable-lint-weblint-${{ env.cache-name }}-
debian_stable-lint-weblint-
Comment thread
peternewman marked this conversation as resolved.
Outdated
- name: Setup Node.js APT repo
shell: bash
run: |
apt-get -y install curl
curl -fsSL https://deb.nodesource.com/setup_20.x | bash -
- name: Install lint tools
run: apt-get install -y nodejs
Comment thread
FloEdelmann marked this conversation as resolved.
Outdated
- name: Install Node.js lint tools and dependencies
Comment thread
FloEdelmann marked this conversation as resolved.
Outdated
run: npm ci
working-directory: ./javascript/new-src
- name: Run weblint
run: npm test
working-directory: ./javascript/new-src
Loading