From f73fa8f74f54a5745d586ad4b6d730ecb0176b5e Mon Sep 17 00:00:00 2001 From: Remi Rousselet Date: Tue, 21 May 2024 14:12:30 +0200 Subject: [PATCH] Try using windows platorm --- .github/workflows/node-test.yml | 34 +++++++++++++++++++++------------ 1 file changed, 22 insertions(+), 12 deletions(-) diff --git a/.github/workflows/node-test.yml b/.github/workflows/node-test.yml index e771345e47b..d7c4656fc86 100644 --- a/.github/workflows/node-test.yml +++ b/.github/workflows/node-test.yml @@ -41,6 +41,28 @@ jobs: - run: npm run lint working-directory: firebase-vscode + vscode_unit: + runs-on: windows-latest + strategy: + matrix: + node-version: + - "18" + - "20" + steps: + - uses: actions/checkout@v4 + - uses: actions/setup-node@v3 + with: + node-version: ${{ matrix.node-version }} + cache: npm + cache-dependency-path: npm-shrinkwrap.json + + - run: npm install + working-directory: firebase-vscode + - run: npm run test:unit + working-directory: firebase-vscode + + - uses: codecov/codecov-action@v3 + if: matrix.node-version == '20' unit: runs-on: ubuntu-latest strategy: @@ -59,17 +81,6 @@ jobs: - run: npm i -g npm@9.5 - run: npm ci - run: npm test -- -- --forbid-only - - run: npm install - working-directory: firebase-vscode - - run: ls - working-directory: firebase-vscode - - run: ls node_modules - working-directory: firebase-vscode - - run: xvfb-run -a npm run test:unit - working-directory: firebase-vscode - env: - ## Workaround to "The futex facility returned an unexpected error code." error - DISPLAY: 0 - uses: codecov/codecov-action@v3 if: matrix.node-version == '20' @@ -106,7 +117,6 @@ jobs: - npm run test:storage-emulator-integration - npm run test:triggers-end-to-end - npm run test:triggers-end-to-end:inspect - - cd firebase-vscode && npm run test:e2e steps: - uses: actions/checkout@v4 - uses: actions/setup-node@v3