chore(Web): Run linter as part of CI
@@ -20,7 +20,6 @@ variables:
# Statically link the lzma-sys crate. See https://github.com/stencila/stencila/issues/1038
LZMA_API_STATIC: 1
-
jobs:
# Create variables indicating whether or not there are changes in
# each product folder
@@ -156,10 +155,11 @@ jobs:
# because it includes end-to-end tests of integrations with the Rust server.
- script: |
set -e
- cargo build --manifest-path cli/Cargo.toml
- cargo run --manifest-path cli/Cargo.toml -- serve --insecure &
cd web
npm install
+ npm run lint
+ cargo build --manifest-path ../cli/Cargo.toml
+ cargo run --manifest-path ../cli/Cargo.toml -- serve --insecure &
SERVER_URL="ws://127.0.0.1:9000/~ws" npm test
kill %1
condition: |
