forked from zowe/zowe-explorer-vscode
-
Notifications
You must be signed in to change notification settings - Fork 3
59 lines (48 loc) · 1.63 KB
/
zowe-explorer-ci.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
51
52
53
54
55
56
57
58
59
name: Zowe Explorer CI
on:
push:
paths:
- packages/zowe-explorer/**
pull_request:
paths:
- packages/zowe-explorer/**
jobs:
ze-build:
runs-on: ${{ matrix.os }}
strategy:
# Continue to run tests on the other systems if one fails
fail-fast: false
matrix:
node-version: [10.x, 12.x, 14.x]
# order operating systems from best to worst
os: [windows-latest, ubuntu-latest, macos-latest]
steps:
- name: Check out code
uses: actions/checkout@v2
- name: Use Node.js ${{ matrix.node-version }}
uses: actions/setup-node@v1
with:
node-version: ${{ matrix.node-version }}
# install yarn
- run: npm install -g yarn
- run: yarn install --frozen-lockfile
# run audit on 1 system to avoid overloading the audit API
- name: Audit from Windows / Node 12.x
run: yarn audit --production --groups dependencies
if: matrix.os == 'windows-latest' && matrix.node-version == '12.x'
- run: yarn test
env:
CI: true
NODE_OPTIONS: --max_old_space_size=4096
- name: Upload test results
uses: actions/upload-artifact@v1
# if: matrix.os == 'windows-latest' && matrix.node-version == '12.x'
with:
name: zowe-explorer-results
path: packages/zowe-explorer/results/
# Run codecov upload for only one run
- name: Upload Results to Codecov from Windows / Node 12.x
if: matrix.os == 'windows-latest' && matrix.node-version == '12.x'
uses: codecov/codecov-action@v1.0.7
with:
env_vars: OS,NODE