-
Notifications
You must be signed in to change notification settings - Fork 0
43 lines (38 loc) · 1.09 KB
/
ci.yaml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
# Derived from https://code.visualstudio.com/api/working-with-extensions/continuous-integration#github-actions
# Retries from https://github.com/marketplace/actions/retry-step
name: CI
on:
pull_request:
push:
branches:
- main
jobs:
build:
strategy:
matrix:
os: [macos-latest, ubuntu-latest, windows-latest]
runs-on: ${{ matrix.os }}
steps:
- name: Checkout/install
uses: adamhamlin/checkout-node-project@v1
with:
node-version: 16.x
- name: Run Tests (Linux)
if: runner.os == 'Linux'
uses: nick-fields/retry@v2.8.1
with:
command: xvfb-run -a npm run test:ci
max_attempts: 3
timeout_minutes: 6
env:
VEXT_TESTING: true
- name: Run Tests (MacOS/Windows)
if: runner.os != 'Linux'
uses: nick-fields/retry@v2.8.1
with:
# Only run `npm run test:ci` for linux, c8 coverage doesn't work right on windows...
command: npm test
max_attempts: 3
timeout_minutes: 6
env:
VEXT_TESTING: true