Skip to content

Commit

Permalink
drop the obsolete xvfb action
Browse files Browse the repository at this point in the history
  • Loading branch information
mmomtchev committed Oct 2, 2024
1 parent 3413f4b commit 8c9993c
Showing 1 changed file with 35 additions and 12 deletions.
47 changes: 35 additions & 12 deletions .github/workflows/test-package.yml
Original file line number Diff line number Diff line change
Expand Up @@ -67,10 +67,16 @@ jobs:
mv node_modules/magickwand.js/test .
mkdir -p deps/ImageMagick/config
cp node_modules/magickwand.js/deps/ImageMagick/config/policy-websafe.xml deps/ImageMagick/config
- name: Run the unit tests headless
uses: coactions/setup-xvfb@v1
with:
run: npx mocha --require ts-node/register --types mocha --reporter=tap --v8-expose-gc --timeout 5000 test/*.test.ts
- name: Run the unit tests headless (macOS/Windows)
run: npx mocha --require ts-node/register --types mocha --reporter=tap --v8-expose-gc --timeout 5000 test/*.test.ts
if: runner.os != 'Linux'
env:
TS_NODE_PROJECT: ${{ github.workspace }}/test/tsconfig.standalone.json
MOCHA_INTEGRATION: node,browser
MOCHA_MAGICK_INSTALL: npm install --force ${{ inputs.download && format('{0}/{1}', github.workspace, inputs.package) || inputs.package }}
- name: Run the unit tests headless (Linux)
run: xvfb-run npx mocha --require ts-node/register --types mocha --reporter=tap --v8-expose-gc --timeout 5000 test/*.test.ts
if: runner.os == 'Linux'
env:
TS_NODE_PROJECT: ${{ github.workspace }}/test/tsconfig.standalone.json
MOCHA_INTEGRATION: node,browser
Expand Down Expand Up @@ -128,17 +134,26 @@ jobs:
mv node_modules/magickwand.js/test .
mkdir -p deps/ImageMagick/config
cp node_modules/magickwand.js/deps/ImageMagick/config/policy-websafe.xml deps/ImageMagick/config
- name: Run the unit tests headless
uses: coactions/setup-xvfb@v1
with:
run: npx mocha --require ts-node/register --types mocha --reporter=tap --v8-expose-gc --timeout 5000 test/*.test.ts
- name: Run the unit tests headless (macOS/Windows)
run: npx mocha --require ts-node/register --types mocha --reporter=tap --v8-expose-gc --timeout 5000 test/*.test.ts
if: runner.os != 'Linux'
env:
TS_NODE_PROJECT: ${{ github.workspace }}/test/tsconfig.standalone.json
MOCHA_INTEGRATION: node,browser
MOCHA_MAGICK_INSTALL: npm install --force ${{ inputs.download && format('{0}/{1}', github.workspace, inputs.package) || inputs.package }}
MOCHA_LIGHT: 1
MOCHA_EXTRALIGHT: 1
- name: Run the unit tests headless (Linux)
run: xvfb-run npx mocha --require ts-node/register --types mocha --reporter=tap --v8-expose-gc --timeout 5000 test/*.test.ts
if: runner.os == 'Linux'
env:
TS_NODE_PROJECT: ${{ github.workspace }}/test/tsconfig.standalone.json
MOCHA_INTEGRATION: node,browser
MOCHA_MAGICK_INSTALL: npm install --force ${{ inputs.download && format('{0}/{1}', github.workspace, inputs.package) || inputs.package }}
MOCHA_LIGHT: 1
MOCHA_EXTRALIGHT: 1


test_npm_rebuild_light:
runs-on: ${{ matrix.platform }}

Expand Down Expand Up @@ -240,10 +255,18 @@ jobs:
mv node_modules/magickwand.js/test .
mkdir -p deps/ImageMagick/config
cp node_modules/magickwand.js/deps/ImageMagick/config/policy-websafe.xml deps/ImageMagick/config
- name: Run the unit tests headless
uses: coactions/setup-xvfb@v1
with:
run: npx mocha --require ts-node/register --types mocha --reporter=tap --v8-expose-gc --timeout 5000 test/*.test.ts
- name: Run the unit tests headless (macOS/Windows)
run: npx mocha --require ts-node/register --types mocha --reporter=tap --v8-expose-gc --timeout 5000 test/*.test.ts
if: runner.os != 'Linux'
env:
TS_NODE_PROJECT: ${{ github.workspace }}/test/tsconfig.standalone.json
MOCHA_INTEGRATION: node,browser
MOCHA_MAGICK_INSTALL: npm install --force ${{ inputs.download && format('{0}/{1}', github.workspace, inputs.package) || inputs.package }}
MOCHA_LIGHT: 1
MOCHA_EXTRALIGHT: 1
- name: Run the unit tests headless (Linux)
run: xvfb-run npx mocha --require ts-node/register --types mocha --reporter=tap --v8-expose-gc --timeout 5000 test/*.test.ts
if: runner.os == 'Linux'
env:
TS_NODE_PROJECT: ${{ github.workspace }}/test/tsconfig.standalone.json
MOCHA_INTEGRATION: node,browser
Expand Down

0 comments on commit 8c9993c

Please sign in to comment.