|
30 | 30 | runs-on: ubuntu-22.04 |
31 | 31 | steps: |
32 | 32 | - name: Checkout |
33 | | - uses: actions/checkout@v3 |
| 33 | + uses: actions/checkout@v4 |
34 | 34 | with: |
35 | 35 | submodules: recursive |
36 | 36 | - name: Set repo owner |
@@ -76,17 +76,31 @@ jobs: |
76 | 76 | max_attempts: 3 |
77 | 77 | retry_on: any |
78 | 78 | command: ./scripts/launch.sh -lwp |
| 79 | + - name: Zip Linux Unpacked build |
| 80 | + run: zip -r dist/linux-unpacked.zip dist/linux-unpacked |
| 81 | + - name: Upload Linux Unpacked build |
| 82 | + uses: actions/upload-artifact@v3 |
| 83 | + with: |
| 84 | + name: linux-unpacked |
| 85 | + path: dist/linux-unpacked.zip |
| 86 | + - name: Zip Win Unpacked build |
| 87 | + run: zip -r dist/win-unpacked.zip dist/win-unpacked |
| 88 | + - name: Upload Win Unpacked build |
| 89 | + uses: actions/upload-artifact@v3 |
| 90 | + with: |
| 91 | + name: win-unpacked |
| 92 | + path: dist/win-unpacked.zip |
79 | 93 | - name: Prepare cache folders |
80 | 94 | run: | |
81 | 95 | sudo chown -R $(id -u):$(id -g) ~/.cache/electron |
82 | 96 | sudo chown -R $(id -u):$(id -g) ~/.cache/electron-builder |
83 | 97 |
|
84 | 98 | mac-builder: |
85 | 99 | timeout-minutes: 90 |
86 | | - runs-on: macos-11 |
| 100 | + runs-on: macos-12 |
87 | 101 | steps: |
88 | 102 | - name: Checkout |
89 | | - uses: actions/checkout@v3 |
| 103 | + uses: actions/checkout@v4 |
90 | 104 | with: |
91 | 105 | submodules: recursive |
92 | 106 | - name: Set repo owner |
@@ -135,3 +149,108 @@ jobs: |
135 | 149 | max_attempts: 3 |
136 | 150 | retry_on: any |
137 | 151 | command: ./scripts/build-release.sh -mp |
| 152 | + - name: Zip Mac Unpacked build |
| 153 | + run: zip -r dist/mac.zip dist/mac |
| 154 | + - name: Upload Mac Unpacked build |
| 155 | + uses: actions/upload-artifact@v3 |
| 156 | + with: |
| 157 | + name: mac-unpacked |
| 158 | + path: dist/mac.zip |
| 159 | + |
| 160 | + linux-e2e-test-runner: |
| 161 | + name: Linux E2E Test Runner |
| 162 | + timeout-minutes: 30 |
| 163 | + runs-on: ubuntu-22.04 |
| 164 | + needs: [linux-win-docker-builder] |
| 165 | + steps: |
| 166 | + - name: Checkout |
| 167 | + uses: actions/checkout@v4 |
| 168 | + - uses: actions/setup-node@v3 |
| 169 | + with: |
| 170 | + node-version: 18.17.1 |
| 171 | + - name: Install main dev deps |
| 172 | + run: npm i --development --no-audit --progress=false --force |
| 173 | + - name: Download Linux Unpacked build |
| 174 | + uses: actions/download-artifact@v3 |
| 175 | + with: |
| 176 | + name: linux-unpacked |
| 177 | + path: dist |
| 178 | + - name: Unzip Linux Unpacked build |
| 179 | + run: unzip dist/linux-unpacked.zip |
| 180 | + - name: Run tests |
| 181 | + uses: coactions/setup-xvfb@v1.0.1 |
| 182 | + with: |
| 183 | + run: npm run e2e |
| 184 | + - name: Normalize E2E test report |
| 185 | + run: node ./scripts/node/normalize-e2e-test-report e2e-test-report.xml |
| 186 | + - name: Upload Linux E2E test results |
| 187 | + uses: actions/upload-artifact@v3 |
| 188 | + with: |
| 189 | + name: linux-e2e-test-results |
| 190 | + path: e2e-test-report.xml |
| 191 | + |
| 192 | + win-e2e-test-runner: |
| 193 | + name: Win E2E Test Runner |
| 194 | + timeout-minutes: 30 |
| 195 | + runs-on: windows-2022 |
| 196 | + needs: [linux-win-docker-builder] |
| 197 | + steps: |
| 198 | + - name: Checkout |
| 199 | + uses: actions/checkout@v4 |
| 200 | + - uses: actions/setup-node@v3 |
| 201 | + with: |
| 202 | + node-version: 18.17.1 |
| 203 | + - name: Install main dev deps |
| 204 | + run: npm i --development --no-audit --progress=false --force |
| 205 | + - name: Download Linux Unpacked build |
| 206 | + uses: actions/download-artifact@v3 |
| 207 | + with: |
| 208 | + name: win-unpacked |
| 209 | + path: dist |
| 210 | + - name: Unzip Win Unpacked build |
| 211 | + run: 7z -y x dist/win-unpacked.zip |
| 212 | + - name: Run tests |
| 213 | + uses: coactions/setup-xvfb@v1.0.1 |
| 214 | + with: |
| 215 | + run: npm run e2e |
| 216 | + - name: Normalize E2E test report |
| 217 | + run: node ./scripts/node/normalize-e2e-test-report e2e-test-report.xml |
| 218 | + - name: Upload Win E2E test results |
| 219 | + uses: actions/upload-artifact@v3 |
| 220 | + with: |
| 221 | + name: win-e2e-test-results |
| 222 | + path: e2e-test-report.xml |
| 223 | + |
| 224 | + mac-e2e-test-runner: |
| 225 | + name: Mac E2E Test Runner |
| 226 | + timeout-minutes: 30 |
| 227 | + runs-on: macos-12 |
| 228 | + needs: [mac-builder] |
| 229 | + steps: |
| 230 | + - name: Checkout |
| 231 | + uses: actions/checkout@v4 |
| 232 | + - name: Prepare Mac runner |
| 233 | + uses: ./.github/actions/prepare-mac-runner |
| 234 | + - uses: actions/setup-node@v3 |
| 235 | + with: |
| 236 | + node-version: 18.17.1 |
| 237 | + - name: Install main dev deps |
| 238 | + run: npm i --development --no-audit --progress=false --force |
| 239 | + - name: Download Mac Unpacked build |
| 240 | + uses: actions/download-artifact@v3 |
| 241 | + with: |
| 242 | + name: mac-unpacked |
| 243 | + path: dist |
| 244 | + - name: Unzip Mac Unpacked build |
| 245 | + run: unzip dist/mac.zip |
| 246 | + - name: Run tests |
| 247 | + uses: coactions/setup-xvfb@v1.0.1 |
| 248 | + with: |
| 249 | + run: npm run e2e |
| 250 | + - name: Normalize E2E test report |
| 251 | + run: node ./scripts/node/normalize-e2e-test-report e2e-test-report.xml |
| 252 | + - name: Upload Mac E2E test results |
| 253 | + uses: actions/upload-artifact@v3 |
| 254 | + with: |
| 255 | + name: mac-e2e-test-results |
| 256 | + path: e2e-test-report.xml |
0 commit comments