diff --git a/.github/workflows/test-all.yml b/.github/workflows/test-all.yml index e9c1d2e4896..4733e97751c 100644 --- a/.github/workflows/test-all.yml +++ b/.github/workflows/test-all.yml @@ -17,6 +17,8 @@ jobs: build: name: Build the SDK runs-on: ubuntu-latest + env: + NODE_OPTIONS: "--max_old_space_size=4096" steps: # Install Chrome so the correct version of webdriver can be installed by chromedriver when # setting up the repo. This must be done to build and execute Auth properly. @@ -28,8 +30,6 @@ jobs: uses: actions/setup-node@v3 with: node-version: 16.x - - name: Bump Node memory limit - run: echo "NODE_OPTIONS=--max_old_space_size=4096" >> $GITHUB_ENV - name: Test setup and yarn install run: | cp config/ci.config.json config/project.json @@ -54,12 +54,13 @@ jobs: name: (bulk) Node.js and Browser (Chrome) Tests needs: build runs-on: ubuntu-latest + env: + NODE_OPTIONS: "--max_old_space_size=4096" steps: # install Chrome first, so the correct version of webdriver can be installed by chromedriver when setting up the repo - name: install Chrome stable run: | - sudo apt-get update - sudo apt-get install google-chrome-stable + npx @puppeteer/browsers install chrome@stable - name: Download build archive uses: actions/download-artifact@v3 with: @@ -70,8 +71,6 @@ jobs: uses: actions/setup-node@v3 with: node-version: 16.x - - name: Bump Node memory limit - run: echo "NODE_OPTIONS=--max_old_space_size=4096" >> $GITHUB_ENV - name: Test setup and yarn install run: | cp config/ci.config.json config/project.json @@ -98,12 +97,14 @@ jobs: name: (Auth) Node.js and Browser (Chrome) Tests needs: build runs-on: ubuntu-latest + env: + NODE_OPTIONS: "--max_old_space_size=4096" steps: # install Chrome first, so the correct version of webdriver can be installed by chromedriver # when setting up the repo - - name: install Chrome stable - run: | - npx @puppeteer/browsers install chrome@stable + - name: install Chrome stable + run: | + npx @puppeteer/browsers install chrome@stable - name: Download build archive uses: actions/download-artifact@v3 with: @@ -114,8 +115,6 @@ jobs: uses: actions/setup-node@v3 with: node-version: 16.x - - name: Bump Node memory limit - run: echo "NODE_OPTIONS=--max_old_space_size=4096" >> $GITHUB_ENV - name: Test setup and yarn install run: | cp config/ci.config.json config/project.json @@ -141,12 +140,16 @@ jobs: name: (Firestore) Node.js and Browser (Chrome) Tests needs: build runs-on: ubuntu-latest + if: false + # Disable test for now since it's failing 100% of the time since + # https://github.com/firebase/firebase-js-sdk/pull/7453 and it needs to be investigated. + env: + NODE_OPTIONS: "--max_old_space_size=4096" steps: # install Chrome so the correct version of webdriver can be installed by chromedriver when setting up the repo - name: install Chrome stable run: | - sudo apt-get update - sudo apt-get install google-chrome-stable + npx @puppeteer/browsers install chrome@stable - name: Download build archive uses: actions/download-artifact@v3 with: @@ -157,8 +160,6 @@ jobs: uses: actions/setup-node@v3 with: node-version: 16.x - - name: Bump Node memory limit - run: echo "NODE_OPTIONS=--max_old_space_size=4096" >> $GITHUB_ENV - name: Test setup and yarn install run: | cp config/ci.config.json config/project.json @@ -171,6 +172,7 @@ jobs: node scripts/print_test_logs.js env: FIREBASE_TOKEN: ${{ secrets.FIREBASE_CLI_TOKEN }} + EXPERIMENTAL_MODE: true - name: Generate coverage file run: yarn ci:coverage - name: Run coverage @@ -179,7 +181,6 @@ jobs: github-token: ${{ secrets.GITHUB_TOKEN }} path-to-lcov: ./lcov-all.info continue-on-error: true - test-firestore-integration: strategy: fail-fast: false @@ -188,12 +189,13 @@ jobs: name: Firestore Integration Tests (${{ matrix.persistence }}) needs: build runs-on: ubuntu-latest + env: + NODE_OPTIONS: "--max_old_space_size=4096" steps: # install Chrome so the correct version of webdriver can be installed by chromedriver when setting up the repo - name: install Chrome stable run: | - sudo apt-get update - sudo apt-get install google-chrome-stable + npx @puppeteer/browsers install chrome@stable - name: Download build archive uses: actions/download-artifact@v3 with: @@ -204,8 +206,6 @@ jobs: uses: actions/setup-node@v3 with: node-version: 16.x - - name: Bump Node memory limit - run: echo "NODE_OPTIONS=--max_old_space_size=4096" >> $GITHUB_ENV - run: cp config/ci.config.json config/project.json - run: yarn - run: yarn build:${{ matrix.persistence }}