mirror of
https://github.com/vacp2p/libp2p-test-plans.git
synced 2026-01-08 21:07:59 -05:00
Trying to debug these tests in CI is incredibly difficult and since they depend on older versions of previously published modules, if something breaks due to a bug in released code it's very hard to fix it. Instead follow the pattern in the perf tests and include the full test implementations here.
18 lines
417 B
Docker
18 lines
417 B
Docker
# Here because we want to fetch the node_modules within docker so that it's
|
|
# installed on the same platform the test is run. Otherwise tools like `esbuild` will fail to run
|
|
FROM node:lts
|
|
|
|
WORKDIR /app
|
|
|
|
COPY package*.json .aegir.js tsconfig.json ./
|
|
COPY src ./src
|
|
COPY test ./test
|
|
|
|
# disable colored output and CLI animation from test runners
|
|
ENV CI true
|
|
|
|
RUN npm ci
|
|
RUN npm run build
|
|
|
|
ENTRYPOINT npm test -- -t node
|