From c5124ff32087a478337acc4b6e45602f3537af9a Mon Sep 17 00:00:00 2001 From: Vasco Santos Date: Wed, 11 Aug 2021 17:05:30 +0200 Subject: [PATCH] fix: electron tests --- .github/workflows/main.yml | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/.github/workflows/main.yml b/.github/workflows/main.yml index 85e7ea2..344dd8c 100644 --- a/.github/workflows/main.yml +++ b/.github/workflows/main.yml @@ -63,11 +63,13 @@ jobs: steps: - uses: actions/checkout@v2 - run: npm install - - run: npx xvfb-maybe aegir test -t electron-main --bail + - run: npm run build -- --esm-tests # build tests with esm + - run: npx xvfb-maybe aegir test -t electron-main -f "dist/cjs/node-test/*js" --bail test-electron-renderer: needs: check runs-on: ubuntu-latest steps: - uses: actions/checkout@v2 - run: npm install - - run: npx xvfb-maybe aegir test -t electron-renderer --bail + - run: npm run build -- --esm-tests # build tests with esm + - run: npx xvfb-maybe aegir test -t electron-renderer -f "dist/cjs/node-test/*js" --bail