Skip to content

Commit fcf6e6e

Browse files
Add check for ES5 in CI
1 parent ee88f46 commit fcf6e6e

File tree

1 file changed

+8
-1
lines changed

1 file changed

+8
-1
lines changed

Diff for: src/ci/docker/host-x86_64/mingw-check/Dockerfile

+8-1
Original file line numberDiff line numberDiff line change
@@ -17,6 +17,11 @@ RUN apt-get update && apt-get install -y --no-install-recommends \
1717
pkg-config \
1818
mingw-w64
1919

20+
RUN curl -sL https://nodejs.org/dist/v14.4.0/node-v14.4.0-linux-x64.tar.xz | tar -xJ
21+
ENV PATH="/node-v14.4.0-linux-x64/bin:${PATH}"
22+
# Install es-check
23+
RUN npm install es-check -g
24+
2025
COPY scripts/sccache.sh /scripts/
2126
RUN sh /scripts/sccache.sh
2227

@@ -29,4 +34,6 @@ ENV SCRIPT python3 ../x.py --stage 2 test src/tools/expand-yaml-anchors && \
2934
python3 ../x.py test --stage 0 src/tools/compiletest && \
3035
python3 ../x.py test --stage 2 src/tools/tidy && \
3136
python3 ../x.py doc --stage 0 library/std && \
32-
/scripts/validate-toolstate.sh
37+
/scripts/validate-toolstate.sh && \
38+
# Runs checks to ensure that there are no ES5 issues in our JS code.
39+
es-check es5 ../src/librustdoc/html/static/*.js

0 commit comments

Comments
 (0)