Skip to content

Commit

Permalink
ci: wip
Browse files Browse the repository at this point in the history
  • Loading branch information
nvlang committed Jun 20, 2024
1 parent ad3610b commit 4948b21
Show file tree
Hide file tree
Showing 3 changed files with 5 additions and 5 deletions.
2 changes: 1 addition & 1 deletion .github/workflows/vitest.yml
Original file line number Diff line number Diff line change
Expand Up @@ -75,7 +75,7 @@ jobs:
${{ runner.os }}-pnpm-store-
- name: Install dependencies
run: pnpm install
run: pnpm install && pnpm exec playwright install --with-deps

- name: Prepare environment for Docker container
run: |
Expand Down
5 changes: 2 additions & 3 deletions docker/Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -4,11 +4,10 @@ FROM texlive/texlive:latest
# Install dependencies and tools
RUN apt-get update && \
apt-get install -y curl gnupg poppler-data poppler-utils && \
curl -fsSL https://deb.nodesource.com/setup_18.x | bash - && \
curl -fsSL https://deb.nodesource.com/setup_20.x | bash - && \
apt-get install -y nodejs && \
npm install -g pnpm && \
pnpm install playwright vitest && \
pnpm exec playwright install --with-deps && \
apt-get clean && \
rm -rf /var/lib/apt/lists/*

ENV PATH="/usr/local/bin:/usr/bin:/bin:/usr/sbin:/sbin:/usr/local/texlive/2024/bin/x86_64-linux:/usr/local/texlive/2024/bin/custom:/usr/local/texlive/2024/bin:/usr/bin/poppler"
3 changes: 2 additions & 1 deletion tests/unit/utils/TexComponent.test.ts
Original file line number Diff line number Diff line change
Expand Up @@ -942,7 +942,7 @@ describe.concurrent('compile()', () => {
),
])(
'%s (%s) + %s',
{ retry: 2 },
{ timeout: 300e3, retry: 2, sequential: true },
async (engine, intermediateFiletype, converter) => {
const { writeFile, spawnCliInstruction, log } = await spy(
['writeFile', 'spawnCliInstruction', 'log'],
Expand Down Expand Up @@ -1010,6 +1010,7 @@ describe.concurrent('compile()', () => {
// 2. 3rd `writeFile`, for `.svg` file.
// 3. Rename file via `node:fs`.
// 6. 4th `writeFile`, to write cache to `cache.json`.
//
expect(writeFile).toHaveBeenCalledTimes(4);
expect(writeFile).toHaveBeenNthCalledWith(
1,
Expand Down

0 comments on commit 4948b21

Please sign in to comment.