chore: set DISABLE_V8_COMPILE_CACHE in docker test (#2307)

This commit is contained in:
LongYinan 2024-10-14 00:14:09 +08:00 committed by GitHub
parent 4496ffd220
commit af68b685f5
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
3 changed files with 4 additions and 1 deletions

View File

@ -484,7 +484,7 @@ jobs:
run: |
node -e "console.info('docker-image=${{ matrix.settings.image }}'.replace('{:version}', ${{ matrix.node }}))" >> "$GITHUB_OUTPUT"
- name: Run test
run: docker run --rm ${{ matrix.settings.args }} -v ${{ github.workspace }}:/build -w /build ${{ steps.image-name.outputs.docker-image }} sh -c "yarn workspace @examples/napi test -s"
run: docker run --rm ${{ matrix.settings.args }} -v ${{ github.workspace }}:/build -w /build ${{ steps.image-name.outputs.docker-image }} sh -c "DISABLE_V8_COMPILE_CACHE=1 yarn workspace @examples/napi test -s"
build-and-test-linux-armv7:
name: stable - armv7-unknown-linux-gnueabihf - node@20

View File

@ -1,3 +1,5 @@
import { Buffer } from 'node:buffer'
import test from 'ava'
import {

View File

@ -1,3 +1,4 @@
import { Buffer } from 'node:buffer'
import { exec } from 'node:child_process'
import { join } from 'node:path'
import { fileURLToPath } from 'node:url'