Skip to content

Commit 19ef4a9

Browse files
committed
ci: run eslint on the playground JavaScript
Adds a lint-js job that installs the eslint devDependency and runs "npm run lint" on static/js.
1 parent 39a5ea1 commit 19ef4a9

1 file changed

Lines changed: 18 additions & 0 deletions

File tree

.github/workflows/website.yml

Lines changed: 18 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -228,6 +228,24 @@ jobs:
228228
name: wasm-${{ matrix.name }}
229229
path: wasm-out
230230

231+
lint-js:
232+
name: Lint playground JavaScript
233+
runs-on: ubuntu-latest
234+
steps:
235+
- name: Checkout uutils.github.io Repository
236+
uses: actions/checkout@v7
237+
238+
- name: Set up Node.js
239+
uses: actions/setup-node@v4
240+
with:
241+
node-version: 20
242+
243+
- name: Install dependencies
244+
run: npm install
245+
246+
- name: Run ESLint
247+
run: npm run lint
248+
231249
build:
232250
name: Build website artifacts
233251
runs-on: ubuntu-latest

0 commit comments

Comments
 (0)