Skip to content

Commit f5cf07c

Browse files
committed
Make firestore-integration its own job
1 parent b58a617 commit f5cf07c

File tree

1 file changed

+36
-1
lines changed

1 file changed

+36
-1
lines changed

.github/workflows/test-all.yml

Lines changed: 36 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -172,7 +172,7 @@ jobs:
172172
run: echo "FIREBASE_CI_TEST_START_TIME=$(date +%s)" >> $GITHUB_ENV
173173
- name: Run unit tests
174174
run: |
175-
xvfb-run yarn lerna run --concurrency 4 test:ci --scope '{@firebase/firestore*,firebase-firestore-integration-test}'
175+
xvfb-run yarn lerna run --concurrency 4 test:ci --scope '{@firebase/firestore*}'
176176
node scripts/print_test_logs.js
177177
env:
178178
FIREBASE_TOKEN: ${{ secrets.FIREBASE_CLI_TOKEN }}
@@ -184,3 +184,38 @@ jobs:
184184
github-token: ${{ secrets.GITHUB_TOKEN }}
185185
path-to-lcov: ./lcov-all.info
186186
continue-on-error: true
187+
188+
test-firestore-integration:
189+
name: Firestore Integration Tests
190+
needs: build
191+
runs-on: ubuntu-latest
192+
steps:
193+
# install Chrome so the correct version of webdriver can be installed by chromedriver when setting up the repo
194+
- name: install Chrome stable
195+
run: |
196+
sudo apt-get update
197+
sudo apt-get install google-chrome-stable
198+
- name: Download build archive
199+
uses: actions/download-artifact@v3
200+
with:
201+
name: build.tar.gz
202+
- name: Unzip build artifact
203+
run: tar xf build.tar.gz
204+
- name: Set up Node (16)
205+
uses: actions/setup-node@v3
206+
with:
207+
node-version: 16.x
208+
- name: Bump Node memory limit
209+
run: echo "NODE_OPTIONS=--max_old_space_size=4096" >> $GITHUB_ENV
210+
- name: Test setup and yarn install
211+
run: |
212+
cp config/ci.config.json config/project.json
213+
yarn
214+
- name: Set start timestamp env var
215+
run: echo "FIREBASE_CI_TEST_START_TIME=$(date +%s)" >> $GITHUB_ENV
216+
- name: Run unit tests
217+
run: |
218+
xvfb-run yarn lerna run --concurrency 4 test:ci --scope firebase-firestore-integration-test
219+
node scripts/print_test_logs.js
220+
env:
221+
FIREBASE_TOKEN: ${{ secrets.FIREBASE_CLI_TOKEN }}

0 commit comments

Comments
 (0)