|
48 | 48 | - name: Archive build
|
49 | 49 | if: ${{ !cancelled() && steps.build.outcome != 'success' }}
|
50 | 50 | run: |
|
51 |
| - tar -cf build.tar --exclude="\.git" . |
| 51 | + tar -cf build.tar --exclude=.git . |
52 | 52 | gzip build.tar
|
53 | 53 | - name: Upload build archive
|
54 | 54 | if: ${{ !cancelled() && steps.build.outcome != 'success' }}
|
|
81 | 81 | - name: Bump Node memory limit
|
82 | 82 | run: echo "NODE_OPTIONS=--max_old_space_size=4096" >> $GITHUB_ENV
|
83 | 83 | - name: Test setup and yarn install
|
84 |
| - run: | |
85 |
| - cp config/ci.config.json config/project.json |
| 84 | + run: cp config/ci.config.json config/project.json |
86 | 85 | - name: Run compat tests
|
87 | 86 | run: cd packages/firestore-compat && yarn run test:ci
|
88 | 87 |
|
@@ -112,11 +111,41 @@ jobs:
|
112 | 111 | - name: Bump Node memory limit
|
113 | 112 | run: echo "NODE_OPTIONS=--max_old_space_size=4096" >> $GITHUB_ENV
|
114 | 113 | - name: Test setup and yarn install
|
115 |
| - run: | |
116 |
| - cp config/ci.config.json config/project.json |
| 114 | + run: cp config/ci.config.json config/project.json |
117 | 115 | - name: Run tests
|
118 | 116 | run: cd packages/firestore && yarn run ${{ matrix.test-name }}
|
119 | 117 |
|
| 118 | + compat-test-firefox: |
| 119 | + name: Test Firestore Compatible on Firefox |
| 120 | + # Whatever version of Firefox comes with 22.04 is causing Firefox |
| 121 | + # startup to hang when launched by karma. Need to look further into |
| 122 | + # why. |
| 123 | + runs-on: ubuntu-20.04 |
| 124 | + needs: build |
| 125 | + if: ${{ needs.build.outputs.changed == 'true'}} |
| 126 | + steps: |
| 127 | + - name: install Firefox stable |
| 128 | + run: | |
| 129 | + sudo apt-get update |
| 130 | + sudo apt-get install firefox |
| 131 | + - name: Set up Node (14) |
| 132 | + uses: actions/setup-node@v3 |
| 133 | + with: |
| 134 | + node-version: 14.x |
| 135 | + - name: Download build archive |
| 136 | + uses: actions/download-artifact@v3 |
| 137 | + with: |
| 138 | + name: build.tar.gz |
| 139 | + - name: Unzip build artifact |
| 140 | + run: tar xf build.tar.gz |
| 141 | + - name: Bump Node memory limit |
| 142 | + run: echo "NODE_OPTIONS=--max_old_space_size=4096" >> $GITHUB_ENV |
| 143 | + - name: Test setup and yarn install |
| 144 | + run: cp config/ci.config.json config/project.json |
| 145 | + - name: Run compat tests |
| 146 | + run: cd packages/firestore-compat && yarn run test:ci |
| 147 | + env: |
| 148 | + BROWSERS: 'Firefox' |
120 | 149 |
|
121 | 150 | test-firefox:
|
122 | 151 | name: Test Firestore on Firefox
|
@@ -147,8 +176,7 @@ jobs:
|
147 | 176 | - name: Bump Node memory limit
|
148 | 177 | run: echo "NODE_OPTIONS=--max_old_space_size=4096" >> $GITHUB_ENV
|
149 | 178 | - name: Test setup and yarn install
|
150 |
| - run: | |
151 |
| - cp config/ci.config.json config/project.json |
| 179 | + run: cp config/ci.config.json config/project.json |
152 | 180 | - name: Run tests
|
153 | 181 | run: cd packages/firestore && xvfb-run yarn run ${{ matrix.test-name }}
|
154 | 182 | env:
|
|
0 commit comments