Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

GitHub Actions Lint: weblint #1863

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
FloEdelmann marked this conversation as resolved.
Show resolved Hide resolved
- 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-
peternewman marked this conversation as resolved.
Show resolved Hide resolved
- 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
FloEdelmann marked this conversation as resolved.
Show resolved Hide resolved
- name: Install Node.js lint tools and dependencies
FloEdelmann marked this conversation as resolved.
Show resolved Hide resolved
run: npm ci
working-directory: ./javascript/new-src
- name: Run weblint
run: npm test
working-directory: ./javascript/new-src
Loading