-
Notifications
You must be signed in to change notification settings - Fork 72
50 lines (41 loc) · 1.13 KB
/
insiders.yml
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
44
45
46
47
48
49
50
name: Insiders CI
on:
schedule:
- cron: "0 0 * * *"
push:
branches: [ insider ]
workflow_dispatch:
concurrency:
group: ${{ github.workflow }}-${{ github.event.pull_request.number || github.sha }}
cancel-in-progress: true
jobs:
build:
runs-on: ${{ matrix.os }}
strategy:
matrix:
os: [ ubuntu-latest, macos-latest, windows-latest ]
fail-fast: false
env:
CODE_TYPE: insider
steps:
- name: Checkout Repository
uses: actions/checkout@v4
- name: Setup Node
uses: actions/setup-node@v3
with:
node-version: 18.15.x
cache: npm
- name: Run Tests (macOS, windows)
if: matrix.os != 'ubuntu-latest'
run: |
npm run test
- name: Run Tests (linux)
if: matrix.os == 'ubuntu-latest'
run: |
xvfb-run --auto-servernum --server-args='-screen 0 1920x1080x24' npm run test
- name: Upload Screenshots
uses: actions/upload-artifact@v3
if: failure()
with:
name: screenshots-${{ matrix.os }}
path: ${{ github.workspace }}/test/**/screenshots/*.png