mirror of https://github.com/curbengh/hexo-yam
test: workaround for jest-circus module not found
https://github.com/jestjs/jest/issues/15724 also install zstd with --force to ensure the postinstall script that builds the binary actually runs on linux
This commit is contained in:
parent
f5b5c11cbf
commit
792762cca3
|
|
@ -22,10 +22,23 @@ jobs:
|
||||||
path: node_modules
|
path: node_modules
|
||||||
key: ${{ runner.os }}-npm-cache
|
key: ${{ runner.os }}-npm-cache
|
||||||
restore-keys: ${{ runner.os }}-npm-cache
|
restore-keys: ${{ runner.os }}-npm-cache
|
||||||
|
- name: Determine unrs-resolver binary version
|
||||||
|
shell: bash
|
||||||
|
run: |
|
||||||
|
case "$RUNNER_OS" in
|
||||||
|
"Linux")
|
||||||
|
echo "PLATFORM=linux-x64-gnu" >> "$GITHUB_ENV" ;;
|
||||||
|
"Windows")
|
||||||
|
echo "PLATFORM=win32-x64-msvc" >> "$GITHUB_ENV" ;;
|
||||||
|
"macOS")
|
||||||
|
echo "PLATFORM=darwin-arm64" >> "$GITHUB_ENV" ;;
|
||||||
|
esac
|
||||||
- name: Install Dependencies
|
- name: Install Dependencies
|
||||||
|
shell: bash
|
||||||
run: |
|
run: |
|
||||||
npm install
|
npm install
|
||||||
npm install --save-dev jest-circus
|
npm install --include=optional --force @mongodb-js/zstd
|
||||||
|
npm install "@unrs/resolver-binding-$PLATFORM"
|
||||||
- name: Test
|
- name: Test
|
||||||
run: npm run test
|
run: npm run test
|
||||||
env:
|
env:
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue