-
Notifications
You must be signed in to change notification settings - Fork 29
49 lines (42 loc) · 1.13 KB
/
cross-platform-test.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
name: Cross-Platform Test
on:
push:
branches:
- main
pull_request:
concurrency:
group: cross-platform-${{ github.head_ref }}
cancel-in-progress: true
jobs:
suite:
runs-on: ${{ matrix.os }}
timeout-minutes: 30
strategy:
matrix:
os: [windows-latest]
steps:
- name: Checkout
uses: actions/checkout@v4
with:
fetch-depth: 0
submodules: true
- name: Setup Node.js environment
uses: actions/setup-node@v4
with:
node-version: '16'
cache: yarn
- name: Turbo cache
if: ${{ github.ref_name != 'main' }}
id: turbo-cache
uses: actions/cache@v4
with:
path: node_modules/.cache/turbo
key:
turbo-${{ runner.os }}-cross-platform-${{ github.job }}-${{
github.ref_name }}-${{ github.sha }}
restore-keys: |
turbo-${{ runner.os }}-cross-platform-${{ github.job }}-${{ github.ref_name }}-
- run: yarn config set network-timeout 300000
- run: yarn install
- run: yarn run test:jest
- run: yarn run test:vscode